public interface BeanConfigurator
Newly created beans should be configured: it means put specific values to fields, etc. Configurator no need to inject dependencies. This interface allows to create any kind of configurator for beans.
Note, that BeanConfig
parameter is just internal metadata used to identify and keep dependencies, etc.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONFIGURATOR_NAME
Name of default configurator.
|
Modifier and Type | Method and Description |
---|---|
void |
configurationChanged()
Notify bean configurator that configuration was changed and beans needs to be reconfigured
|
void |
configure(BeanConfig beanConfig,
Object bean)
Configure bean.
|
void |
registerBeans(BeanConfig beanConfig,
Object bean,
Map<String,Object> valeus)
Looks for and registers beans which should be registered due to initialization of passed bean.
|
static final String DEFAULT_CONFIGURATOR_NAME
void configurationChanged()
void configure(BeanConfig beanConfig, Object bean)
beanConfig
- internal bean configuration.bean
- bean to configure.void registerBeans(BeanConfig beanConfig, Object bean, Map<String,Object> valeus)
values
), annotations, etc.beanConfig
- bean config of initializing beanbean
- instance of initializing beanvaleus
- configuration for the initializing beanCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.