...
Additional configuration can be applied on top of the default configuration by intercepting the bean when its created, Using the BeanCreatedEventListener.
Code Block | ||
---|---|---|
| ||
@Singleton public class IgniteConfigurationFactoryInterceptor implements BeanCreatedEventListener<DefaultIgniteConfiguration> { @Override public DefaultIgniteConfiguration onCreated(BeanCreatedEvent<DefaultIgniteConfiguration> event) { DefaultIgniteConfiguration configuration = event.getBean(); configuration.setIgniteInstanceName("instance-a"); return configuration; } } |
...