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
protected static void appendToString(StringBuffer buffer, Object value)
           
static Map extractProperties(Map props, String optionPrefix)
           
static boolean getProperties(Object target, Map props, String optionPrefix)
           
static Object getProperty(Object target, String prop)
           
static Method getPropertyGetter(Class type, String propertyName)
           
static boolean setProperties(Object target, Map props)
           
static boolean setProperties(Object target, Map props, String optionPrefix)
           
static boolean setProperties(TypeConverter typeConverter, Object target, Map props)
           
static boolean setProperty(Object target, String name, Object value)
           
static boolean setProperty(TypeConverter typeConverter, Object target, String name, Object value)
           
static String simpleName(Class clazz)
           
static String toString(Object target)
           
static String toString(Object target, Class stopClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperties

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

getProperty

public static Object getProperty(Object target,
                                 String prop)
                          throws SecurityException,
                                 NoSuchMethodException,
                                 IllegalArgumentException,
                                 IllegalAccessException,
                                 InvocationTargetException
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getPropertyGetter

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

setProperties

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

extractProperties

public static Map extractProperties(Map props,
                                    String optionPrefix)

setProperties

public static boolean setProperties(TypeConverter typeConverter,
                                    Object target,
                                    Map props)
                             throws Exception
Throws:
Exception

setProperties

public static boolean setProperties(Object target,
                                    Map props)
                             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

toString

public static String toString(Object target)

toString

public static String toString(Object target,
                              Class stopClass)

appendToString

protected static void appendToString(StringBuffer buffer,
                                     Object value)

simpleName

public static String simpleName(Class clazz)


Copyright © 2008 IONA Open Source Community. All Rights Reserved.