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 C
addAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with additional access constraints.C
asNonFeature()
Configures the resource as non-feature with respect to galleon.C
asOrderedChild()
Configures the resource as an ordered child resource of its parent.C
asRuntime()
Configures the resource as a runtime-only resource.protected abstract C
self()
C
withAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with access constraints.C
withMaxOccurance(int occurance)
Configures the maximum cardinality of this resourceC
withMinOccurance(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.Configurator
Configures the minimum cardinality of this resource- Specified by:
withMinOccurance
in interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
- Returns:
- a reference to this configurator
-
withMaxOccurance
public C withMaxOccurance(int occurance)
Description copied from interface:ResourceDefinition.Configurator
Configures the maximum cardinality of this resource- Specified by:
withMaxOccurance
in 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.Configurator
Configures the resource with access constraints.- Specified by:
withAccessConstraints
in 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.Configurator
Configures the resource with additional access constraints.- Specified by:
addAccessConstraints
in 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.Configurator
Configures the resource as a runtime-only resource.- Specified by:
asRuntime
in interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
- Returns:
- a reference to this configurator
-
asOrderedChild
public C asOrderedChild()
Description copied from interface:ResourceDefinition.Configurator
Configures the resource as an ordered child resource of its parent.- Specified by:
asOrderedChild
in interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
- Returns:
- a reference to this configurator
-
asNonFeature
public C asNonFeature()
Description copied from interface:ResourceDefinition.Configurator
Configures the resource as non-feature with respect to galleon.- Specified by:
asNonFeature
in interfaceResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
- Returns:
- a reference to this configurator
-
-