|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.container.BeanMetaFactory
public class BeanMetaFactory
A factory class for the bean meta data.
| Field Summary | |
|---|---|
static String |
BEAN_META_FACTORY_KEY
The key for bean meta data factory class. |
protected ConcurrentHashMap<String,BeanMeta> |
beanMetaCache
The cache for bean meta data. |
static String |
BINDING_PREFIX
The prefix for binding. |
static String |
DEFAULT_TRANSACTION_KEY
The key for bean meta data factory class. |
protected ConcurrentHashMap<String,Interceptor[]> |
defaultInterceptorsCache
The cache for array of default interceptors. |
protected static TransactionAttributeType |
defaultTransactionType
The default transaction attribute. |
protected boolean |
disposableRegistered
Whether the disposable is registered. |
protected static BeanMetaFactory |
instance
The instance. |
static String |
INTERCEPTORS_PREFIX
The prefix for interceptors. |
protected static Map<TransactionAttributeType,Class<?>> |
txInterceptorClassMap
The map for interceptor class. |
| Constructor Summary | |
|---|---|
BeanMetaFactory()
Constructor. |
|
| Method Summary | |
|---|---|
protected BeanMeta |
createBeanMeta(Class<?> beanClass)
Creates a bean meta data. |
void |
dispose()
Disposes resource. |
BeanMeta |
getBeanMeta(Class<?> beanClass)
Returns the bean meta data. |
static BeanMetaFactory |
getInstance()
Returns the instance. |
protected static void |
initialize()
Initializes this class. |
protected void |
inspectBean(BeanMeta beanMeta)
Inspects the bean. |
protected Interceptor[] |
inspectClassInterceptors(Class<?> beanClass)
Inspects class interceptors. |
protected Interceptor[] |
inspectConfigurationInterceptors(String key)
Inspects interceptors from configuration. |
protected Interceptor[] |
inspectDefaultInterceptors(Class<?> beanClass)
Inspects default interceptors. |
protected void |
inspectField(BeanMeta beanMeta,
BeanDesc beanDesc,
Field field)
Inspects the field. |
protected void |
inspectMethod(Class<?> beanClass,
Method method,
Interceptor[] defaultInterceptors,
Interceptor[] classInterceptors,
Map<Method,Interceptor[]> interceptorsMap)
Inspects the method. |
void |
registerDisposable()
Registers disposable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEAN_META_FACTORY_KEY
public static final String DEFAULT_TRANSACTION_KEY
public static final String BINDING_PREFIX
public static final String INTERCEPTORS_PREFIX
protected static BeanMetaFactory instance
protected static TransactionAttributeType defaultTransactionType
protected static Map<TransactionAttributeType,Class<?>> txInterceptorClassMap
protected boolean disposableRegistered
protected ConcurrentHashMap<String,BeanMeta> beanMetaCache
protected ConcurrentHashMap<String,Interceptor[]> defaultInterceptorsCache
| Constructor Detail |
|---|
public BeanMetaFactory()
| Method Detail |
|---|
protected static void initialize()
public static BeanMetaFactory getInstance()
public void registerDisposable()
public void dispose()
Disposable
dispose in interface Disposable
public BeanMeta getBeanMeta(Class<?> beanClass)
throws NullPointerException
beanClass - the bean class
NullPointerException - if the beanClass parameter is nullprotected BeanMeta createBeanMeta(Class<?> beanClass)
beanClass - the bean class
protected void inspectBean(BeanMeta beanMeta)
beanMeta - the bean meta data
protected void inspectField(BeanMeta beanMeta,
BeanDesc beanDesc,
Field field)
beanMeta - the bean meta databeanDesc - the bean descriptorfield - the fieldprotected Interceptor[] inspectDefaultInterceptors(Class<?> beanClass)
beanClass - the bean class
protected Interceptor[] inspectConfigurationInterceptors(String key)
key - the key for interceptors
protected Interceptor[] inspectClassInterceptors(Class<?> beanClass)
beanClass - the bean class
protected void inspectMethod(Class<?> beanClass,
Method method,
Interceptor[] defaultInterceptors,
Interceptor[] classInterceptors,
Map<Method,Interceptor[]> interceptorsMap)
beanClass - the bean classmethod - the around invoke methoddefaultInterceptors - the default interceptorsclassInterceptors - the class interceptorsinterceptorsMap - the map for interceptors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||