jp.develop.common.util.amf.beans
Class BeanInfo

java.lang.Object
  extended by jp.develop.common.util.amf.beans.BeanInfo

public class BeanInfo
extends Object

Bean information.

Author:
Waki Takeya

Constructor Summary
BeanInfo(Type type)
          Constructs a instance for specified type.
 
Method Summary
static void clearCache()
          Clear all caches.
static BeanInfo getBeanInfo(Type type)
          Get Bean Information using Cache.
 IProperty getProperty(String name)
          Get property by name.
 List<IProperty> getReadProperties()
          Get read properties.
 List<String> getReadPropertyNames()
          Get read property names.
 Object newInstance()
          Create a new instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanInfo

public BeanInfo(Type type)
Constructs a instance for specified type.

Parameters:
type - Target type.
Method Detail

getBeanInfo

public static BeanInfo getBeanInfo(Type type)
Get Bean Information using Cache.

Parameters:
type - Target Type. (Class<?> or ParameterizedType...)
Returns:
Bean Information. You can get/set properties by this information.

clearCache

public static void clearCache()
Clear all caches.


newInstance

public Object newInstance()
Create a new instance.

Returns:
New instance.

getReadPropertyNames

public List<String> getReadPropertyNames()
Get read property names.

Returns:
Read property names.

getReadProperties

public List<IProperty> getReadProperties()
Get read properties.

Returns:
Read properties.

getProperty

public IProperty getProperty(String name)
Get property by name.

Parameters:
name - Property name.
Returns:
Property