org.vraptor.component
Class ComponentTypeWrapper

java.lang.Object
  extended by org.vraptor.component.ComponentTypeWrapper
All Implemented Interfaces:
ComponentType, Outjectable

public class ComponentTypeWrapper
extends Object
implements ComponentType

A component wrapper.

Author:
Guilherme Silveira

Constructor Summary
ComponentTypeWrapper(ComponentType component)
           
 
Method Summary
 Class getComponentClass()
           
 BeanConstructor getConstructor()
          Returns this components contructor.
 String getDestroyLogicName()
           
 List<FieldAnnotation<In>> getInAnnotations()
           
 List<InterceptorType> getInterceptors()
          Returns all interceptors for this component class
 String getKey()
           
 LogicMethod getLogic(String key)
          Returns a specifig logic from this component
 Collection<LogicMethod> getLogics()
          Returns all actions.
 String getName()
          Returns the component name
 Map<String,Object> getOutjectedValues(Object comp, ScopeType scope)
          Returns all outjected objects from an specific scope
 List<ReadParameter> getReadParameters()
           
 ScopeType getScope()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTypeWrapper

public ComponentTypeWrapper(ComponentType component)
Method Detail

getInAnnotations

public List<FieldAnnotation<In>> getInAnnotations()
Specified by:
getInAnnotations in interface ComponentType
Returns:
Returns the inAnnotations.

getInterceptors

public List<InterceptorType> getInterceptors()
Description copied from interface: ComponentType
Returns all interceptors for this component class

Specified by:
getInterceptors in interface ComponentType
Returns:
the interceptor's list

getLogic

public LogicMethod getLogic(String key)
                     throws LogicNotFoundException
Description copied from interface: ComponentType
Returns a specifig logic from this component

Specified by:
getLogic in interface ComponentType
Parameters:
key - the logic name
Returns:
the logic itself
Throws:
LogicNotFoundException - you are asking for something that doesn't belong to me

getName

public String getName()
Description copied from interface: ComponentType
Returns the component name

Specified by:
getName in interface ComponentType
Returns:
the name

getReadParameters

public List<ReadParameter> getReadParameters()
Specified by:
getReadParameters in interface ComponentType
Returns:
Returns the read parameters for this class.

getLogics

public Collection<LogicMethod> getLogics()
                                  throws LogicNotFoundException
Description copied from interface: ComponentType
Returns all actions.

Specified by:
getLogics in interface ComponentType
Returns:
all logics
Throws:
LogicNotFoundException

getComponentClass

public Class getComponentClass()
Specified by:
getComponentClass in interface ComponentType

getScope

public ScopeType getScope()
Specified by:
getScope in interface ComponentType

getKey

public String getKey()
Specified by:
getKey in interface ComponentType

getDestroyLogicName

public String getDestroyLogicName()
Specified by:
getDestroyLogicName in interface ComponentType

getOutjectedValues

public Map<String,Object> getOutjectedValues(Object comp,
                                             ScopeType scope)
                                      throws GettingException,
                                             MethodInvocationException
Description copied from interface: Outjectable
Returns all outjected objects from an specific scope

Specified by:
getOutjectedValues in interface Outjectable
Throws:
GettingException
MethodInvocationException

getConstructor

public BeanConstructor getConstructor()
Description copied from interface: ComponentType
Returns this components contructor.

Specified by:
getConstructor in interface ComponentType
Returns:
the contructor


Copyright © 2004-2008 VRaptor. All Rights Reserved.