Search in sources :

Example 1 with RemoteCacheContainerResourceDefinition

use of org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerResourceDefinition in project wildfly by wildfly.

the class InfinispanSubsystemResourceDefinition method register.

@Override
public void register(SubsystemRegistration parentRegistration) {
    ManagementResourceRegistration registration = parentRegistration.registerSubsystemModel(this);
    registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
    ResourceDescriptor descriptor = new ResourceDescriptor(this.getResourceDescriptionResolver()).addCapabilities(LOCAL_CLUSTERING_CAPABILITIES.values()).addCapabilities(CLUSTERING_CAPABILITIES.values());
    ResourceServiceHandler handler = new InfinispanSubsystemServiceHandler();
    new DeploymentChainContributingResourceRegistration(descriptor, handler, this).register(registration);
    new CacheContainerResourceDefinition().register(registration);
    new RemoteCacheContainerResourceDefinition().register(registration);
}
Also used : RemoteCacheContainerResourceDefinition(org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerResourceDefinition) ManagementResourceRegistration(org.jboss.as.clustering.controller.ManagementResourceRegistration) DeploymentChainContributingResourceRegistration(org.jboss.as.clustering.controller.DeploymentChainContributingResourceRegistration) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) RemoteCacheContainerResourceDefinition(org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerResourceDefinition) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor)

Aggregations

DeploymentChainContributingResourceRegistration (org.jboss.as.clustering.controller.DeploymentChainContributingResourceRegistration)1 ManagementResourceRegistration (org.jboss.as.clustering.controller.ManagementResourceRegistration)1 ResourceDescriptor (org.jboss.as.clustering.controller.ResourceDescriptor)1 ResourceServiceHandler (org.jboss.as.clustering.controller.ResourceServiceHandler)1 RemoteCacheContainerResourceDefinition (org.jboss.as.clustering.infinispan.subsystem.remote.RemoteCacheContainerResourceDefinition)1