org.apache.camel.util
Class IntrospectionSupport

java.lang.Object
  extended by org.apache.camel.util.IntrospectionSupport

public final class IntrospectionSupport
extends Object

Helper for introspections of beans.


Method Summary
static Map<String,Object> extractProperties(Map<String,Object> properties, String optionPrefix)
           
static boolean getProperties(Object target, Map properties, String optionPrefix)
           
static Object getProperty(Object target, String property)
           
static Method getPropertyGetter(Class<?> type, String propertyName)
           
static boolean hasProperties(Map<String,Object> properties, String optionPrefix)
           
static boolean isGetter(Method method)
           
static boolean isSetter(Method method)
           
static boolean setProperties(Object target, Map<String,Object> properties)
           
static boolean setProperties(Object target, Map<String,Object> properties, String optionPrefix)
           
static boolean setProperties(TypeConverter typeConverter, Object target, Map<String,Object> properties)
           
static boolean setProperty(Object target, String name, Object value)
           
static boolean setProperty(TypeConverter typeConverter, Object target, String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isGetter

public static boolean isGetter(Method method)

isSetter

public static boolean isSetter(Method method)

getProperties

public static boolean getProperties(Object target,
                                    Map properties,
                                    String optionPrefix)

hasProperties

public static boolean hasProperties(Map<String,Object> properties,
                                    String optionPrefix)

getProperty

public static Object getProperty(Object target,
                                 String property)
                          throws NoSuchMethodException,
                                 IllegalAccessException,
                                 InvocationTargetException
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException

getPropertyGetter

public static Method getPropertyGetter(Class<?> type,
                                       String propertyName)
                                throws NoSuchMethodException
Throws:
NoSuchMethodException

setProperties

public static boolean setProperties(Object target,
                                    Map<String,Object> properties,
                                    String optionPrefix)
                             throws Exception
Throws:
Exception

extractProperties

public static Map<String,Object> extractProperties(Map<String,Object> properties,
                                                   String optionPrefix)

setProperties

public static boolean setProperties(TypeConverter typeConverter,
                                    Object target,
                                    Map<String,Object> properties)
                             throws Exception
Throws:
Exception

setProperties

public static boolean setProperties(Object target,
                                    Map<String,Object> properties)
                             throws Exception
Throws:
Exception

setProperty

public static boolean setProperty(TypeConverter typeConverter,
                                  Object target,
                                  String name,
                                  Object value)
                           throws Exception
Throws:
Exception

setProperty

public static boolean setProperty(Object target,
                                  String name,
                                  Object value)
                           throws Exception
Throws:
Exception


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.