Package org.jboss.as.controller
Interface ResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
-
- Type Parameters:
C
- the configurator type
- All Known Subinterfaces:
ResourceDefinition.Builder
- All Known Implementing Classes:
ResourceDefinition.AbstractConfigurator
,ResourceDefinition.MinimalBuilder
,SimpleResourceDefinition.Parameters
- Enclosing interface:
- ResourceDefinition
public static interface ResourceDefinition.Configurator<C extends ResourceDefinition.Configurator<C>>
Configures the basic characteristics of aResourceDefinition
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default C
addAccessConstraint(AccessConstraintDefinition accessConstraint)
Configures the resource with an additional access constraint.C
addAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with additional access constraints.default C
addAccessConstraints(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.default C
withAccessConstraint(AccessConstraintDefinition accessConstraint)
Configures the resource with an additional access constraint.C
withAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with access constraints.default C
withAccessConstraints(AccessConstraintDefinition... accessConstraints)
Configures the resource with access constraints.C
withMaxOccurance(int max)
Configures the maximum cardinality of this resourceC
withMinOccurance(int min)
Configures the minimum cardinality of this resource
-
-
-
Method Detail
-
withAccessConstraint
default C withAccessConstraint(AccessConstraintDefinition accessConstraint)
Configures the resource with an additional access constraint.- Parameters:
accessConstraint
- an access constraint- Returns:
- a reference to this configurator
-
withAccessConstraints
default C withAccessConstraints(AccessConstraintDefinition... accessConstraints)
Configures the resource with access constraints.- Parameters:
accessConstraints
- a variable number of access constraints- Returns:
- a reference to this configurator
-
withAccessConstraints
C withAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with access constraints.- Parameters:
accessConstraints
- a collection of access constraints- Returns:
- a reference to this configurator
-
addAccessConstraint
default C addAccessConstraint(AccessConstraintDefinition accessConstraint)
Configures the resource with an additional access constraint.- Parameters:
accessConstraint
- an access constraint- Returns:
- a reference to this configurator
-
addAccessConstraints
default C addAccessConstraints(AccessConstraintDefinition... accessConstraints)
Configures the resource with additional access constraints.- Parameters:
accessConstraints
- a variable number of access constraints- Returns:
- a reference to this configurator
-
addAccessConstraints
C addAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)
Configures the resource with additional access constraints.- Parameters:
accessConstraints
- a collection of access constraints- Returns:
- a reference to this configurator
-
asRuntime
C asRuntime()
Configures the resource as a runtime-only resource.- Returns:
- a reference to this configurator
-
asOrderedChild
C asOrderedChild()
Configures the resource as an ordered child resource of its parent.- Returns:
- a reference to this configurator
-
asNonFeature
C asNonFeature()
Configures the resource as non-feature with respect to galleon.- Returns:
- a reference to this configurator
-
withMinOccurance
C withMinOccurance(int min)
Configures the minimum cardinality of this resource- Returns:
- a reference to this configurator
-
withMaxOccurance
C withMaxOccurance(int max)
Configures the maximum cardinality of this resource- Returns:
- a reference to this configurator
-
-