Class ShallowResourceDefinition
java.lang.Object
org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinition
org.jboss.as.controller.SimpleResourceDefinition
org.jboss.as.controller.PersistentResourceDefinition
org.wildfly.extension.messaging.activemq.shallow.ShallowResourceDefinition
- All Implemented Interfaces:
org.jboss.as.controller.Feature,org.jboss.as.controller.ResourceDefinition,org.jboss.as.controller.ResourceRegistration,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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.controller.SimpleResourceDefinition
org.jboss.as.controller.SimpleResourceDefinition.ParametersNested classes/interfaces inherited from interface org.jboss.as.controller.ResourceDefinition
org.jboss.as.controller.ResourceDefinition.AbstractConfigurator<C extends org.jboss.as.controller.ResourceDefinition.Configurator<C>>, org.jboss.as.controller.ResourceDefinition.Builder, org.jboss.as.controller.ResourceDefinition.Configurator<C extends org.jboss.as.controller.ResourceDefinition.Configurator<C>>, org.jboss.as.controller.ResourceDefinition.MinimalBuilder, org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinitionNested classes/interfaces inherited from interface org.jboss.as.controller.ResourceRegistration
org.jboss.as.controller.ResourceRegistration.DefaultResourceRegistration -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShallowResourceDefinition(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters, boolean registerRuntimeOnly) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, registerChildrenMethods inherited from class org.jboss.as.controller.SimpleResourceDefinition
getAddOperationParameters, getDeprecationData, getFlagsSet, getResourceDescriptionResolver, registerAdditionalRuntimePackages, registerAddOperation, registerAddOperation, registerCapabilities, registerNotifications, registerRemoveOperation, registerRemoveOperation, setDeprecatedMethods inherited from class org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinition
getAccessConstraints, getDescriptionProvider, getMaxOccurs, getMinOccurs, getPathElement, getStability, isFeature, isOrderedChild, isRuntimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.extension.messaging.activemq.shallow.IgnoredAttributeProvider
getIgnoredAttributesMethods inherited from interface org.wildfly.extension.messaging.activemq.shallow.OperationAddressConverter
convert
-
Field Details
-
registerRuntimeOnly
protected final boolean registerRuntimeOnly
-
-
Constructor Details
-
ShallowResourceDefinition
public ShallowResourceDefinition(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters, boolean registerRuntimeOnly)
-
-
Method Details
-
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.OperationFailedException 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).- Parameters:
context-targetAddress-translatedOperation-- Throws:
org.jboss.as.controller.OperationFailedException
-
isUsingSocketBinding
protected abstract boolean isUsingSocketBinding(org.jboss.as.controller.PathAddress targetAddress)
-