Search in sources :

Example 1 with BeanManagerFactoryServiceConfiguratorConfiguration

use of org.wildfly.clustering.ejb.BeanManagerFactoryServiceConfiguratorConfiguration in project wildfly by wildfly.

the class PassivationStoreAdd method install.

protected void install(OperationContext context, ModelNode operation, final int maxSize, final String containerName, final String cacheName) {
    final String name = context.getCurrentAddressValue();
    BeanManagerFactoryServiceConfiguratorConfiguration config = new BeanManagerFactoryServiceConfiguratorConfiguration() {

        @Override
        public String getContainerName() {
            return containerName;
        }

        @Override
        public String getCacheName() {
            return cacheName;
        }

        @Override
        public int getMaxSize() {
            return maxSize;
        }
    };
    new DistributableCacheFactoryBuilderServiceConfigurator<>(name, config).build(context.getServiceTarget()).setInitialMode(ServiceController.Mode.ON_DEMAND).install();
}
Also used : BeanManagerFactoryServiceConfiguratorConfiguration(org.wildfly.clustering.ejb.BeanManagerFactoryServiceConfiguratorConfiguration)

Aggregations

BeanManagerFactoryServiceConfiguratorConfiguration (org.wildfly.clustering.ejb.BeanManagerFactoryServiceConfiguratorConfiguration)1