BeanContext
to manager the beans@Deprecated public class BeanAccessor extends Object
Constructor and Description |
---|
BeanAccessor(ExecutionContext executionContext)
Deprecated.
Public default constructor.
|
BeanAccessor(ExecutionContext executionContext,
Map<String,Object> resultMap)
Deprecated.
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addBean(ExecutionContext executionContext,
String beanId,
Object bean)
Deprecated.
Add a bean instance to the specified request under the specified beanId.
|
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.
|
public BeanAccessor(ExecutionContext executionContext)
public BeanAccessor(ExecutionContext executionContext, Map<String,Object> resultMap)
resultMap
- The result Map.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.Copyright © 2020. All rights reserved.