Package org.jboss.as.controller
Class ResourceDefinition.AbstractConfigurator<C extends ResourceDefinition.Configurator<C>>
- java.lang.Object
-
- org.jboss.as.controller.ResourceDefinition.AbstractConfigurator<C>
-
- All Implemented Interfaces:
ResourceDefinition.Configurator<C>
- Direct Known Subclasses:
ResourceDefinition.MinimalBuilder,SimpleResourceDefinition.Parameters
- Enclosing interface:
- ResourceDefinition
public abstract static class ResourceDefinition.AbstractConfigurator<C extends ResourceDefinition.Configurator<C>> extends Object implements ResourceDefinition.Configurator<C>
Configures the basic characteristics of aResourceDefinition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CaddAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)Configures the resource with additional access constraints.CasNonFeature()Configures the resource as non-feature with respect to galleon.CasOrderedChild()Configures the resource as an ordered child resource of its parent.CasRuntime()Configures the resource as a runtime-only resource.protected abstract Cself()CwithAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)Configures the resource with access constraints.CwithMaxOccurance(int occurance)Configures the maximum cardinality of this resourceCwithMinOccurance(int occurance)Configures the minimum cardinality of this resource-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.ResourceDefinition.Configurator
addAccessConstraint, addAccessConstraints, withAccessConstraint, withAccessConstraints
-
-
-
-
Method Detail
-
self
protected abstract C self()
-
withMinOccurance
public C withMinOccurance(int occurance)
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the minimum cardinality of this resource- Specified by:
withMinOccurancein interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Returns:
- a reference to this configurator
-
withMaxOccurance
public C withMaxOccurance(int occurance)
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the maximum cardinality of this resource- Specified by:
withMaxOccurancein interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Returns:
- a reference to this configurator
-
withAccessConstraints
public C withAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the resource with access constraints.- Specified by:
withAccessConstraintsin interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Parameters:
accessConstraints- a collection of access constraints- Returns:
- a reference to this configurator
-
addAccessConstraints
public C addAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the resource with additional access constraints.- Specified by:
addAccessConstraintsin interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Parameters:
accessConstraints- a collection of access constraints- Returns:
- a reference to this configurator
-
asRuntime
public C asRuntime()
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the resource as a runtime-only resource.- Specified by:
asRuntimein interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Returns:
- a reference to this configurator
-
asOrderedChild
public C asOrderedChild()
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the resource as an ordered child resource of its parent.- Specified by:
asOrderedChildin interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Returns:
- a reference to this configurator
-
asNonFeature
public C asNonFeature()
Description copied from interface:ResourceDefinition.ConfiguratorConfigures the resource as non-feature with respect to galleon.- Specified by:
asNonFeaturein interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>- Returns:
- a reference to this configurator
-
-