Class ShallowResourceDefinition
- java.lang.Object
-
- org.jboss.as.controller.SimpleResourceDefinition
-
- org.jboss.as.controller.PersistentResourceDefinition
-
- org.wildfly.extension.messaging.activemq.shallow.ShallowResourceDefinition
-
- All Implemented Interfaces:
org.jboss.as.controller.ResourceDefinition,IgnoredAttributeProvider,OperationAddressConverter
- Direct Known Subclasses:
BroadcastGroupDefinition,DiscoveryGroupDefinition
public abstract class ShallowResourceDefinition extends org.jboss.as.controller.PersistentResourceDefinition implements OperationAddressConverter, IgnoredAttributeProvider
- Author:
- Emmanuel Hugonnet (c) 2019 Red Hat, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanregisterRuntimeOnly
-
Constructor Summary
Constructors Constructor Description ShallowResourceDefinition(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters, boolean registerRuntimeOnly)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanisUsingSocketBinding(org.jboss.as.controller.PathAddress targetAddress)voidregisterAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry)voidregisterOperations(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)protected voidvalidateOperation(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress targetAddress, org.jboss.dmr.ModelNode translatedOperation)This provides more informative message when a user tries to undefine attribute that is required by the jgroups-discovery-group or socket-discovery-group resources (while it hasn't been required on the original discovery-group resource).-
Methods inherited from class org.jboss.as.controller.PersistentResourceDefinition
getAttributes, getChildren, registerChildren
-
Methods inherited from class org.jboss.as.controller.SimpleResourceDefinition
getAccessConstraints, getDeprecationData, getDescriptionProvider, getFlagsSet, getMaxOccurs, getMinOccurs, getPathElement, getResourceDescriptionResolver, isFeature, isOrderedChild, isRuntime, registerAdditionalRuntimePackages, registerAddOperation, registerAddOperation, registerCapabilities, registerNotifications, registerRemoveOperation, registerRemoveOperation, setDeprecated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.extension.messaging.activemq.shallow.IgnoredAttributeProvider
getIgnoredAttributes
-
Methods inherited from interface org.wildfly.extension.messaging.activemq.shallow.OperationAddressConverter
convert
-
-
-
-
Method Detail
-
registerOperations
public void registerOperations(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
- Specified by:
registerOperationsin interfaceorg.jboss.as.controller.ResourceDefinition- Overrides:
registerOperationsin classorg.jboss.as.controller.SimpleResourceDefinition
-
registerAttributes
public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry)
- Specified by:
registerAttributesin interfaceorg.jboss.as.controller.ResourceDefinition- Overrides:
registerAttributesin classorg.jboss.as.controller.PersistentResourceDefinition
-
validateOperation
protected void validateOperation(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress targetAddress, org.jboss.dmr.ModelNode translatedOperation) throws org.jboss.as.controller.OperationFailedExceptionThis provides more informative message when a user tries to undefine attribute that is required by the jgroups-discovery-group or socket-discovery-group resources (while it hasn't been required on the original discovery-group resource).- Parameters:
context-targetAddress-translatedOperation-- Throws:
org.jboss.as.controller.OperationFailedException
-
isUsingSocketBinding
protected abstract boolean isUsingSocketBinding(org.jboss.as.controller.PathAddress targetAddress)
-
-