org.apache.servicemix.bean.support
Class BeanInfo

java.lang.Object
  extended by org.apache.servicemix.bean.support.BeanInfo

public class BeanInfo
extends Object

Represents the metadata about a bean type created via a combination of introspection and annotations together with some useful sensible defaults

Version:
$Revision: $

Constructor Summary
BeanInfo(Class type, MethodInvocationStrategy strategy)
           
 
Method Summary
protected  Expression createContentExpression(PojoMarshaler marshaller)
           
 org.aopalliance.intercept.MethodInvocation createInvocation(Object pojo, MessageExchange messageExchange)
           
protected  Expression createMethodParametersExpression(Expression[] parameterExpressions)
           
protected  Expression createParameterUnmarshalExpression(Class clazz, Method method, Class parameterType, Annotation[] parameterAnnotation)
          Creates an expression for the given parameter type if the parameter can be mapped automatically or null if the parameter cannot be mapped due to unsufficient annotations or not fitting with the default type conventions.
protected  Expression createParameterUnmarshalExpressionForAnnotation(Class clazz, Method method, Class parameterType, Annotation annotation)
           
 Class getType()
           
 void introspect()
           
protected  void introspect(Class clazz)
           
protected  void introspect(Class clazz, Method method)
           
protected  PojoMarshaler newInstance(Content content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanInfo

public BeanInfo(Class type,
                MethodInvocationStrategy strategy)
Method Detail

getType

public Class getType()

introspect

public void introspect()

createInvocation

public org.aopalliance.intercept.MethodInvocation createInvocation(Object pojo,
                                                                   MessageExchange messageExchange)
                                                            throws MessagingException
Throws:
MessagingException

introspect

protected void introspect(Class clazz)

introspect

protected void introspect(Class clazz,
                          Method method)

createMethodParametersExpression

protected Expression createMethodParametersExpression(Expression[] parameterExpressions)

createParameterUnmarshalExpression

protected Expression createParameterUnmarshalExpression(Class clazz,
                                                        Method method,
                                                        Class parameterType,
                                                        Annotation[] parameterAnnotation)
Creates an expression for the given parameter type if the parameter can be mapped automatically or null if the parameter cannot be mapped due to unsufficient annotations or not fitting with the default type conventions.


createParameterUnmarshalExpressionForAnnotation

protected Expression createParameterUnmarshalExpressionForAnnotation(Class clazz,
                                                                     Method method,
                                                                     Class parameterType,
                                                                     Annotation annotation)

createContentExpression

protected Expression createContentExpression(PojoMarshaler marshaller)

newInstance

protected PojoMarshaler newInstance(Content content)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.