org.vraptor.introspector
Class BasicIntrospector

java.lang.Object
  extended by org.vraptor.introspector.BasicIntrospector
All Implemented Interfaces:
Introspector

public class BasicIntrospector
extends Object
implements Introspector

The default introspector implementation.

Author:
Guilherme Silveira

Constructor Summary
BasicIntrospector()
           
 
Method Summary
 BeanProvider getBeanProvider()
          Returns the current bean provider for this introspector.
 void inject(List<FieldAnnotation<In>> inAnnotations, Object component, LogicRequest request)
          Call for injection: tries to inject each field listed on the inAnnotations on object component using the logic context passed as argument
 void outject(LogicRequest logicRequest, Object component, Outjectable type)
           
 List<ValidationMessage> readParameters(List<ReadParameter> parametersToRead, Object component, LogicRequest logicRequest, ConverterManager converterManager, Object[] methodParamObjects)
          Reads all parameters from the request and tries to fill the read annotation of a class.
 void setBeanProvider(BeanProvider beanProvider)
          Overrides the current bean provider for this introspector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIntrospector

public BasicIntrospector()
Method Detail

readParameters

public List<ValidationMessage> readParameters(List<ReadParameter> parametersToRead,
                                              Object component,
                                              LogicRequest logicRequest,
                                              ConverterManager converterManager,
                                              Object[] methodParamObjects)
                                       throws SettingException
Description copied from interface: Introspector
Reads all parameters from the request and tries to fill the read annotation of a class.

Specified by:
readParameters in interface Introspector
Throws:
SettingException

inject

public void inject(List<FieldAnnotation<In>> inAnnotations,
                   Object component,
                   LogicRequest request)
            throws ComponentInstantiationException,
                   SettingException
Description copied from interface: Introspector
Call for injection: tries to inject each field listed on the inAnnotations on object component using the logic context passed as argument

Specified by:
inject in interface Introspector
Parameters:
inAnnotations - annotations
component - current object
request - logic context
Throws:
ComponentInstantiationException - unable to instantiate some component for the injection
SettingException - unable to set some field for the injection

outject

public void outject(LogicRequest logicRequest,
                    Object component,
                    Outjectable type)
             throws GettingException,
                    MethodInvocationException
Specified by:
outject in interface Introspector
Throws:
GettingException
MethodInvocationException

getBeanProvider

public BeanProvider getBeanProvider()
Description copied from interface: Introspector
Returns the current bean provider for this introspector.

Specified by:
getBeanProvider in interface Introspector
Returns:
the bean provider

setBeanProvider

public void setBeanProvider(BeanProvider beanProvider)
Description copied from interface: Introspector
Overrides the current bean provider for this introspector.

Specified by:
setBeanProvider in interface Introspector
Parameters:
beanProvider - the new bean provider


Copyright © 2004-2008 VRaptor. All Rights Reserved.