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 CaddAccessConstraint(AccessConstraintDefinition accessConstraint)Configures the resource with an additional access constraint.CaddAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)Configures the resource with additional access constraints.default CaddAccessConstraints(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.default CwithAccessConstraint(AccessConstraintDefinition accessConstraint)Configures the resource with an additional access constraint.CwithAccessConstraints(Collection<AccessConstraintDefinition> accessConstraints)Configures the resource with access constraints.default CwithAccessConstraints(AccessConstraintDefinition... accessConstraints)Configures the resource with access constraints.CwithMaxOccurance(int max)Configures the maximum cardinality of this resourceCwithMinOccurance(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
-
-