|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.container.BeanMeta
public class BeanMeta
A meta data class for bean.
Field Summary | |
---|---|
protected Class<?> |
beanClass
The bean class. |
protected ArrayMap<String,Binding> |
bindings
The binding collection. |
protected Class<?> |
enhancedBeanClass
The enhanced bean class. |
protected Map<Method,Interceptor[]> |
interceptorsMap
The map for interceptors. |
protected String |
name
The bean name. |
Constructor Summary | |
---|---|
BeanMeta(String name,
Class<?> beanClass)
Constructor. |
Method Summary | |
---|---|
void |
addBinding(String propertyName,
Binding binding)
Adds the binding. |
Class<?> |
getBeanClass()
Returns the bean class. |
Binding |
getBinding(int index)
Returns the binding for the index. |
Binding |
getBinding(String propertyName)
Returns the binding for the property name. |
int |
getBindingSize()
Returns the number of bindings. |
Class<?> |
getEnhancedBeanClass()
Returns the enhanced bean class. |
Map<Method,Interceptor[]> |
getInterceptorsMap()
Returns the map for interceptors. |
String |
getName()
Return the bean name. |
boolean |
hasBinding(String propertyName)
Determines if this class has the property. |
void |
setInterceptorsMap(Map<Method,Interceptor[]> interceptorsMap)
Sets the map for interceptors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected Class<?> beanClass
protected Class<?> enhancedBeanClass
protected ArrayMap<String,Binding> bindings
protected Map<Method,Interceptor[]> interceptorsMap
Constructor Detail |
---|
public BeanMeta(String name, Class<?> beanClass)
name
- the bean namebeanClass
- the bean class
NullPointerException
- if the name parameter is null or if the beanClass parameter
is nullMethod Detail |
---|
public String getName()
public Class<?> getBeanClass()
public Class<?> getEnhancedBeanClass()
public int getBindingSize()
public Binding getBinding(int index)
index
- the index
public Binding getBinding(String propertyName) throws BindingNotFoundRuntimeException
propertyName
- the property name
BindingNotFoundRuntimeException
- if the binding is not foundpublic boolean hasBinding(String propertyName)
propertyName
- the property name
public void addBinding(String propertyName, Binding binding)
propertyName
- the property namebinding
- the bindingpublic Map<Method,Interceptor[]> getInterceptorsMap()
public void setInterceptorsMap(Map<Method,Interceptor[]> interceptorsMap)
interceptorsMap
- the map for interceptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |