public class OperationFactory extends Object
| Constructor and Description |
|---|
OperationFactory() |
OperationFactory(Function<String,String> nameFn)
Creates a new instance with the specified name function.
|
| Modifier and Type | Method and Description |
|---|---|
Composite |
fromChangeSet(ResourceAddress address,
Map<String,Object> changeSet,
Metadata metadata)
Turns a change-set into a composite operation containing write-attribute
and undefine-attribute
operations.
|
public OperationFactory()
public OperationFactory(Function<String,String> nameFn)
NAME parameters of the DMR operations.nameFn - function which is applied to the NAME parameter of the operations created by this
class.public Composite fromChangeSet(ResourceAddress address, Map<String,Object> changeSet, Metadata metadata)
The composite operation will contain undefine-attribute operations which reflect the alternative attributes as defined in the specified metadata.
address - the fq address used for the operationschangeSet - the changed valuesmetadata - the metadata which should contain the attribute definitions of the change-setCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.