Class OperationFactory


  • public class OperationFactory
    extends Object
    • Constructor Detail

      • OperationFactory

        public OperationFactory()
      • OperationFactory

        public OperationFactory​(Function<String,​String> nameFn)
        Creates a new instance with the specified name function. Use this constructor if you want to create change sets for complex attributes and need to adopt the NAME parameters of the DMR operations.
        Parameters:
        nameFn - function which is applied to the NAME parameter of the operations created by this class.
    • Method Detail

      • fromChangeSet

        public 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.

        The composite operation will contain undefine-attribute operations which reflect the alternative attributes as defined in the specified metadata.

        Parameters:
        address - the fq address used for the operations
        changeSet - the changed values
        metadata - the metadata which should contain the attribute definitions of the change-set