|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.javabean.BeanAccessor
BeanContext to manager the beans
@Deprecated public class BeanAccessor
Bean Accessor.
This class provides support for saving and accessing Javabean instance.
| Constructor Summary | |
|---|---|
BeanAccessor(ExecutionContext executionContext)
Deprecated. Public default constructor. |
|
BeanAccessor(ExecutionContext executionContext,
Map<String,Object> resultMap)
Deprecated. Public constructor. |
|
| Method Summary | |
|---|---|
static void |
addBean(ExecutionContext executionContext,
String beanId,
Object bean)
Deprecated. Add a bean instance to the specified request under the specified beanId. |
static void |
addBeanLifecycleObserver(ExecutionContext executionContext,
String beanId,
BeanLifecycle lifecycle,
String observerId,
boolean notifyOnce,
BeanLifecycleObserver observer)
Deprecated. Registers an observer which observers when a bean gets added. |
static void |
associateLifecycles(ExecutionContext executionContext,
String parentBean,
String childBean)
Deprecated. Associates the lifeCycle of the childBean with the parentBean. |
static void |
changeBean(ExecutionContext executionContext,
String beanId,
Object bean)
Deprecated. Changes a bean object of the given beanId. |
static Object |
getBean(ExecutionContext executionContext,
String beanId)
Deprecated. Get the current bean, specified by the supplied beanId, from the supplied request. |
static Object |
getBean(String beanId,
ExecutionContext executionContext)
Deprecated. Get the current bean, specified by the supplied beanId, from the supplied request. |
static Map<String,Object> |
getBeanMap(ExecutionContext executionContext)
Deprecated. Get the bean map associated with the supplied request instance. |
static HashMap<String,Object> |
getBeans(ExecutionContext executionContext)
Deprecated. Get the bean map associated with the supplied request instance. |
static void |
removeBeanLifecycleObserver(ExecutionContext executionContext,
String beanId,
BeanLifecycle lifecycle,
String observerId)
Deprecated. Unregisters a bean observer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanAccessor(ExecutionContext executionContext)
public BeanAccessor(ExecutionContext executionContext,
Map<String,Object> resultMap)
resultMap - The result Map.| Method Detail |
|---|
public static Object getBean(String beanId,
ExecutionContext executionContext)
beanId - Bean Identifier.executionContext - The request on which the bean instance is stored.
public static Object getBean(ExecutionContext executionContext,
String beanId)
beanId - Bean Identifier.executionContext - The request on which the bean instance is stored.
public static HashMap<String,Object> getBeans(ExecutionContext executionContext)
executionContext - The execution context.
public static Map<String,Object> getBeanMap(ExecutionContext executionContext)
executionContext - The execution context.
public static void addBean(ExecutionContext executionContext,
String beanId,
Object bean)
executionContext - The execution context within which the bean is created.beanId - The beanId under which the bean is to be stored.bean - The bean instance to be stored.
public static void changeBean(ExecutionContext executionContext,
String beanId,
Object bean)
BeanLifecycle.CHANGE event are notified.
executionContext - The execution context within which the bean is created.beanId - The beanId under which the bean is to be stored.bean - The bean instance to be stored.
public static void associateLifecycles(ExecutionContext executionContext,
String parentBean,
String childBean)
executionContext - The execution context within which the beans are located.parentBean - The bean that controlles the lifecycle of its childschildBean - The bean that will be associated to the parentaddToList - Is the child added to a bean list.
public static void addBeanLifecycleObserver(ExecutionContext executionContext,
String beanId,
BeanLifecycle lifecycle,
String observerId,
boolean notifyOnce,
BeanLifecycleObserver observer)
executionContext - The execution context in which the observer is registeredbeanId - The bean id for which the observer is registeredobserverId - The id of the observer. This is used to unregister the observerobserver - The actual BeanObserver object
public static void removeBeanLifecycleObserver(ExecutionContext executionContext,
String beanId,
BeanLifecycle lifecycle,
String observerId)
executionContext - The execution context in which the observer is registeredbeanId - The bean id for which the observer is registeredobserverId - The id of the observer to unregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||