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 a
ResourceDefinition.-
Method Summary
Modifier and TypeMethodDescriptiondefault CaddAccessConstraint(AccessConstraintDefinition accessConstraint) Configures the resource with an additional access constraint.addAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints) Configures the resource with additional access constraints.default CaddAccessConstraints(AccessConstraintDefinition... accessConstraints) Configures the resource with additional access constraints.Configures the resource as non-feature with respect to galleon.Configures the resource as an ordered child resource of its parent.Configures the resource as a runtime-only resource.default CwithAccessConstraint(AccessConstraintDefinition accessConstraint) Configures the resource with an additional access constraint.withAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints) Configures the resource with access constraints.default CwithAccessConstraints(AccessConstraintDefinition... accessConstraints) Configures the resource with access constraints.withMaxOccurance(int max) Configures the maximum cardinality of this resourcewithMinOccurance(int min) Configures the minimum cardinality of this resource
-
Method Details
-
withAccessConstraint
Configures the resource with an additional access constraint.- Parameters:
accessConstraint- an access constraint- Returns:
- a reference to this configurator
-
withAccessConstraints
Configures the resource with access constraints.- Parameters:
accessConstraints- a variable number of access constraints- Returns:
- a reference to this configurator
-
withAccessConstraints
Configures the resource with access constraints.- Parameters:
accessConstraints- a collection of access constraints- Returns:
- a reference to this configurator
-
addAccessConstraint
Configures the resource with an additional access constraint.- Parameters:
accessConstraint- an access constraint- Returns:
- a reference to this configurator
-
addAccessConstraints
Configures the resource with additional access constraints.- Parameters:
accessConstraints- a variable number of access constraints- Returns:
- a reference to this configurator
-
addAccessConstraints
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
Configures the minimum cardinality of this resource- Returns:
- a reference to this configurator
-
withMaxOccurance
Configures the maximum cardinality of this resource- Returns:
- a reference to this configurator
-