public interface BeanServer<T extends Bean> extends BeanConfigPropertiesManager
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()  | 
void | 
disableAllBeansAssignableTo(Class<?> interfaceClass)
Disables all beans that implement the specified interface. 
 | 
T | 
getEnabledBean(String beanClassName)  | 
List<T> | 
getEnabledBeansAssignableTo(Class<?>[] interfaceClasses)  | 
List<String> | 
getEnabledBeansClassNamesAssignableTo(Class<?>[] interfaceClasses)  | 
boolean | 
replaceBeanAssignableTo(Class<?>[] interfaceClasses,
                       String beanClassName,
                       Map<String,String> properties)
Assuming there is at most one enabled bean that implements one of the specified interfaces,
 puts the specified configuration and enables a new bean in its place. 
 | 
disableAllBeans, disableBean, enableBean, getBeanConfig, getBeansClassNames, getEnabledBeansClassNames, isBeanEnabled, removeBeanConfig, setBeanConfigT getEnabledBean(String beanClassName)
void disableAllBeansAssignableTo(Class<?> interfaceClass)
boolean replaceBeanAssignableTo(Class<?>[] interfaceClasses, String beanClassName, Map<String,String> properties)
interfaceClasses - - the interface that the new and old bean need to implementbeanClassName - - the class name of the beanproperties - - the new bean configuration that is to replace the existing
                         specified interface implementation.IllegalStateException - - if more than one enabled bean implements any of the specified
                               interfacesBeanConfigException - - if the bean initialization failed.void destroy()
List<T> getEnabledBeansAssignableTo(Class<?>[] interfaceClasses)
interfaceClasses - - the interface that the bean we are looking for needs to implementList<String> getEnabledBeansClassNamesAssignableTo(Class<?>[] interfaceClasses) throws ClassNotFoundException
interfaceClasses - - the interface that the bean we are looking for needs to implementClassNotFoundExceptionCopyright © GigaSpaces.