|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanConfigPropertiesManager
A weakly typed properties manager for managing admin bean configurations by their name. The
String key is the bean class name (see BeanConfig.getBeanClassName()
)), mapped with the
relevant configuration properties.
Method Summary | |
---|---|
void |
disableAllBeans()
Disable all currently enabled beans. |
void |
disableBean(String beanClassName)
Disables a bean. |
void |
enableBean(String beanClassName)
Disables a bean. |
Map<String,String> |
getBeanConfig(String beanClassName)
Get the bean configuration. |
String[] |
getBeansClassNames()
Lists the class names of configured beans. |
String[] |
getEnabledBeansClassNames()
Lists the class names of enabled beans. |
boolean |
isBeanEnabled(String beanClassName)
|
boolean |
removeBeanConfig(String beanClassName)
Removes a bean configuration. |
void |
setBeanConfig(String beanClassName,
Map<String,String> properties)
Defines a configuration for the specified bean. |
Method Detail |
---|
void setBeanConfig(String beanClassName, Map<String,String> properties) throws EnabledBeanConfigCannotBeChangedException
An exception is raised if the bean is enabled.
beanClassName
- the bean class nameproperties
- the String key-value pairs used to configure this bean.
EnabledBeanConfigCannotBeChangedException
- The bean is enabled. Disable it first.void enableBean(String beanClassName) throws BeanConfigNotFoundException, BeanConfigurationException, BeanInitializationException
If the bean is already disabled, the request is silently ignored.
beanClassName
- the bean class name
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.void disableBean(String beanClassName) throws BeanConfigNotFoundException
If the bean is already disabled, the request is silently ignored.
beanClassName
- the bean class name
BeanConfigNotFoundException
- bean configuration cannot be found.boolean isBeanEnabled(String beanClassName)
beanClassName
- the bean class name
true
if the bean is enabled, false
if the bean is disabled.boolean removeBeanConfig(String beanClassName) throws EnabledBeanConfigCannotBeChangedException, BeanConfigNotFoundException
An exception is raised if the bean is enabled.
beanClassName
- the bean class name
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.Map<String,String> getBeanConfig(String beanClassName) throws BeanConfigNotFoundException
beanClassName
- the bean class name
BeanConfigNotFoundException
- bean configuration cannot be found. Put the configuration first.String[] getBeansClassNames()
String[] getEnabledBeansClassNames()
enableBean(String)
void disableAllBeans()
disableBean(String)
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |