|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
B - the bean configuration implementation classpublic interface BeanConfigManager<B extends BeanConfig>
A strongly typed bean configuration manager using the strongly typed implementation of a
BeanConfig. It rides on top of the weakly typed bean configuration properties manager
(see BeanConfigPropertiesManager). Underneath this wrapper, the bean name (
BeanConfig.getBeanClassName()) and the configuration properties (
BeanConfig.getProperties()) are extracted and passed to the bean properties manager.
| Method Summary | ||
|---|---|---|
|
disableBean(Class<T> clazz)
Disables a bean. |
|
|
enableBean(Class<T> clazz)
Enable a previously set bean configuration. |
|
|
getBeanConfig(Class<T> clazz)
Get the bean configuration represented by the specified configuration class. |
|
|
isBeanEnabled(Class<T> clazz)
|
|
|
removeBeanConfig(Class<T> clazz)
Removes a bean configuration. |
|
void |
setBeanConfig(B config)
Defines a configuration for the specified bean. |
|
| Method Detail |
|---|
void setBeanConfig(B config)
throws EnabledBeanConfigCannotBeChangedException
An exception is raised if the bean is enabled.
config - the bean configuration
EnabledBeanConfigCannotBeChangedException - The bean is enabled. Disable it first.
<T extends B> void enableBean(Class<T> clazz)
throws BeanConfigNotFoundException,
BeanConfigurationException,
BeanInitializationException
If the bean is already enabled, the request is silently ignored.
T - a bean configuration implementation (see BeanConfig)clazz - the class of the bean configuration
BeanConfigNotFoundException - bean configuration cannot be found.
BeanConfigurationException - in the event of misconfiguration (such as failure to set an essential property).
BeanInitializationException - if bean initialization fails.
<T extends B> void disableBean(Class<T> clazz)
throws BeanConfigNotFoundException
If the bean is already disabled, the request is silently ignored.
T - a bean configuration implementation (see BeanConfig)clazz - the class of the bean configuration
BeanConfigNotFoundException - bean configuration cannot be found.<T extends B> boolean isBeanEnabled(Class<T> clazz)
T - a bean configuration implementation (see BeanConfig)clazz - the class of the bean configuration
true if the bean is enabled, false if the bean is disabled.
<T extends B> boolean removeBeanConfig(Class<T> clazz)
throws EnabledBeanConfigCannotBeChangedException,
BeanConfigNotFoundException
An exception is raised if the bean is enabled.
T - a bean configuration implementation (see BeanConfig)clazz - the class of the bean configuration
true if removed ,false if it did not exist in the first place.
EnabledBeanConfigCannotBeChangedException - The bean is enabled. Disable it first.
BeanConfigNotFoundException - bean configuration cannot be found.
<T extends B> T getBeanConfig(Class<T> clazz)
throws BeanConfigNotFoundException
T - a bean configuration implementation (see BeanConfig)clazz - the class of the bean configuration
BeanConfigNotFoundException - bean configuration cannot be found. Need to set the configuration first.
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||