Class ops.OperationFactory
Defined in: OperationFactory.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<inner> |
construct(Constructor)
|
create(spec)
Create an instance of an operation based on the provided spec
|
|
register(specName, specConstructor)
Registers an operation constructor with this operation factory
|
Method Detail
<inner>
{!ops.OperationFactory.SpecConstructor}
construct(Constructor)
- Parameters:
- {!function(new:ops.Operation)} Constructor
- Returns:
- {!ops.OperationFactory.SpecConstructor}
{ops.Operation}
create(spec)
Create an instance of an operation based on the provided spec
- Parameters:
- {!{optype:string}} spec
- Returns:
- {ops.Operation}
{undefined}
register(specName, specConstructor)
Registers an operation constructor with this operation factory
- Parameters:
- {!string} specName
- {!ops.OperationFactory.SpecConstructor} specConstructor
- Returns:
- {undefined}