org.vraptor.introspector
Interface Introspector

All Known Implementing Classes:
BasicIntrospector

public interface Introspector

The instrospector is responsible for doing injection/outjection and pushing parameters in the business logic.

Author:
Guilherme Silveira

Method Summary
 BeanProvider getBeanProvider()
          Returns the current bean provider for this introspector.
 void inject(List<FieldAnnotation<In>> inAnnotations, Object component, LogicRequest context)
          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 provider)
          Overrides the current bean provider for this introspector.
 

Method Detail

readParameters

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

Parameters:
methodParamObjects -
Throws:
SettingException

inject

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

Parameters:
inAnnotations - annotations
component - current object
context - logic context
Throws:
ComponentInstantiationException - unable to instantiate some component for the injection
SettingException - unable to set some field for the injection

outject

void outject(LogicRequest logicRequest,
             Object component,
             Outjectable type)
             throws GettingException,
                    MethodInvocationException
Throws:
GettingException
MethodInvocationException

getBeanProvider

BeanProvider getBeanProvider()
Returns the current bean provider for this introspector.

Returns:
the bean provider
Since:
2.2.4

setBeanProvider

void setBeanProvider(BeanProvider provider)
Overrides the current bean provider for this introspector.

Parameters:
provider - the new bean provider
Since:
2.2.4


Copyright © 2004-2008 VRaptor. All Rights Reserved.