public interface BeanCreationHandler
BeanAdapter
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createBean(java.lang.String userName,
java.lang.String password)
Called to create a bean when it is needed
|
java.lang.Object |
createMasterBean()
Called to create a bean for master sessions
|
void |
destroyBean(java.lang.Object bean)
Called when a bean goes "out of life", so resources on it can be freed.
|
void |
init(java.lang.Class beanClass,
BeanAdapter adapter)
Method called on connection of the bean adapter
|
void init(java.lang.Class beanClass, BeanAdapter adapter) throws java.lang.SecurityException, java.lang.NoSuchMethodException
beanClass
- The class of the Java bean from configurationadapter
- The BeanAdapter
instance usedjava.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.Object createBean(java.lang.String userName, java.lang.String password) throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
userName
- The name of the user of the OpenWGA domain that the bean adapter belongs topassword
- The password of that userjava.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.Object createMasterBean() throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
void destroyBean(java.lang.Object bean) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
bean
- The bean that is no morejava.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException