Package jadex.commons.transformation
Class BeanIntrospectorFactory
- java.lang.Object
-
- jadex.commons.transformation.BeanIntrospectorFactory
-
public class BeanIntrospectorFactory extends java.lang.Object
Factory for generating bean introspectors.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
DEFAULT_INTROSPECTOR_CACHE_SIZE
protected static BeanIntrospectorFactory
instance
The factor instanceprotected IBeanIntrospector
introspector
The introspector.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
beanToString(java.lang.Object bean, java.lang.ClassLoader cl)
Converts a bean to a string.IBeanIntrospector
getBeanIntrospector()
Gets an introspector with default lru size.IBeanIntrospector
getBeanIntrospector(int lrusize)
Gets an introspector.static BeanIntrospectorFactory
getInstance()
Gets a factory instance.
-
-
-
Field Detail
-
DEFAULT_INTROSPECTOR_CACHE_SIZE
protected int DEFAULT_INTROSPECTOR_CACHE_SIZE
-
instance
protected static volatile BeanIntrospectorFactory instance
The factor instance
-
introspector
protected IBeanIntrospector introspector
The introspector.
-
-
Method Detail
-
getInstance
public static BeanIntrospectorFactory getInstance()
Gets a factory instance.- Returns:
- Instance.
-
getBeanIntrospector
public IBeanIntrospector getBeanIntrospector()
Gets an introspector with default lru size.- Returns:
- The introspector.
-
getBeanIntrospector
public IBeanIntrospector getBeanIntrospector(int lrusize)
Gets an introspector.- Returns:
- The introspector.
-
beanToString
public static java.lang.String beanToString(java.lang.Object bean, java.lang.ClassLoader cl)
Converts a bean to a string.- Parameters:
bean
- The bean.cl
- The classloader.
-
-