protected class AbstractAddStepHandler.OrderedResourceCreator extends Object implements AbstractAddStepHandler.ResourceCreator
| Constructor and Description |
|---|
OrderedResourceCreator(boolean indexedAdd,
Set<String> orderedChildTypes)
Constructor
|
OrderedResourceCreator(boolean indexedAdd,
String... orderedChildTypes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
createResoure(OperationContext context,
org.jboss.dmr.ModelNode operation)
Create a resource
|
public OrderedResourceCreator(boolean indexedAdd,
Set<String> orderedChildTypes)
indexedAdd - if (true this is the child of a parent with ordered children,
and this child will be added at the add-index of the add operation in the
parent's list of children of this type. If false this is a normal child, i.e. the
insert will always happen at the end of the list as normal.orderedChildTypes - if not null or empty, this indicates that this is a parent
resource with ordered children, and the entries here are the type names of children which
are ordered.public OrderedResourceCreator(boolean indexedAdd,
String... orderedChildTypes)
indexedAdd - if (true this is the child of a parent with ordered children,
and this child will be added at the add-index of the add operation in the
parent's list of children of this type. If false this is a normal child, i.e. the
insert will always happen at the end of the list as normal.orderedChildTypes - if not null or empty, this indicates that this is a parent
resource with ordered children, and the entries here are the type names of children which
are ordered.public Resource createResoure(OperationContext context, org.jboss.dmr.ModelNode operation)
AbstractAddStepHandler.ResourceCreatorcreateResoure in interface AbstractAddStepHandler.ResourceCreatorcontext - the operation contextoperation - the operationCopyright © 2015 JBoss by Red Hat. All rights reserved.