Search in sources :

Example 1 with ClusteringDependencyProcessor

use of org.jboss.as.clustering.infinispan.deployment.ClusteringDependencyProcessor 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, target -> target.addDeploymentProcessor(InfinispanExtension.SUBSYSTEM_NAME, Phase.DEPENDENCIES, Phase.DEPENDENCIES_CLUSTERING, new ClusteringDependencyProcessor())).register(registration);
    new CacheContainerResourceDefinition(this.pathManager, this.allowRuntimeOnlyRegistration).register(registration);
}
Also used : SubsystemResourceDefinition(org.jboss.as.clustering.controller.SubsystemResourceDefinition) SubsystemRegistration(org.jboss.as.controller.SubsystemRegistration) ResourceTransformationDescriptionBuilder(org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder) Map(java.util.Map) ClusteringDependencyProcessor(org.jboss.as.clustering.infinispan.deployment.ClusteringDependencyProcessor) ModelVersion(org.jboss.as.controller.ModelVersion) ModelDescriptionConstants(org.jboss.as.controller.descriptions.ModelDescriptionConstants) EnumSet(java.util.EnumSet) RuntimeCapability(org.jboss.as.controller.capability.RuntimeCapability) EnumMap(java.util.EnumMap) PathAddress(org.jboss.as.controller.PathAddress) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor) PathElement(org.jboss.as.controller.PathElement) DeploymentChainContributingResourceRegistration(org.jboss.as.clustering.controller.DeploymentChainContributingResourceRegistration) PathManager(org.jboss.as.controller.services.path.PathManager) TransformationDescription(org.jboss.as.controller.transform.description.TransformationDescription) ManagementResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration) ClusteringRequirement(org.wildfly.clustering.spi.ClusteringRequirement) TransformationDescriptionBuilder(org.jboss.as.controller.transform.description.TransformationDescriptionBuilder) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) UnaryRequirementCapability(org.jboss.as.clustering.controller.UnaryRequirementCapability) LocalGroupBuilderProvider(org.wildfly.clustering.spi.LocalGroupBuilderProvider) RequirementCapability(org.jboss.as.clustering.controller.RequirementCapability) GenericSubsystemDescribeHandler(org.jboss.as.controller.operations.common.GenericSubsystemDescribeHandler) Phase(org.jboss.as.server.deployment.Phase) ManagementResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration) DeploymentChainContributingResourceRegistration(org.jboss.as.clustering.controller.DeploymentChainContributingResourceRegistration) ClusteringDependencyProcessor(org.jboss.as.clustering.infinispan.deployment.ClusteringDependencyProcessor) ResourceServiceHandler(org.jboss.as.clustering.controller.ResourceServiceHandler) ResourceDescriptor(org.jboss.as.clustering.controller.ResourceDescriptor)

Aggregations

EnumMap (java.util.EnumMap)1 EnumSet (java.util.EnumSet)1 Map (java.util.Map)1 DeploymentChainContributingResourceRegistration (org.jboss.as.clustering.controller.DeploymentChainContributingResourceRegistration)1 RequirementCapability (org.jboss.as.clustering.controller.RequirementCapability)1 ResourceDescriptor (org.jboss.as.clustering.controller.ResourceDescriptor)1 ResourceServiceHandler (org.jboss.as.clustering.controller.ResourceServiceHandler)1 SubsystemResourceDefinition (org.jboss.as.clustering.controller.SubsystemResourceDefinition)1 UnaryRequirementCapability (org.jboss.as.clustering.controller.UnaryRequirementCapability)1 ClusteringDependencyProcessor (org.jboss.as.clustering.infinispan.deployment.ClusteringDependencyProcessor)1 ModelVersion (org.jboss.as.controller.ModelVersion)1 PathAddress (org.jboss.as.controller.PathAddress)1 PathElement (org.jboss.as.controller.PathElement)1 SubsystemRegistration (org.jboss.as.controller.SubsystemRegistration)1 RuntimeCapability (org.jboss.as.controller.capability.RuntimeCapability)1 ModelDescriptionConstants (org.jboss.as.controller.descriptions.ModelDescriptionConstants)1 GenericSubsystemDescribeHandler (org.jboss.as.controller.operations.common.GenericSubsystemDescribeHandler)1 ManagementResourceRegistration (org.jboss.as.controller.registry.ManagementResourceRegistration)1 PathManager (org.jboss.as.controller.services.path.PathManager)1 ResourceTransformationDescriptionBuilder (org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder)1