Class EolOperationFactory
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.operations.EolOperationFactory
-
- Direct Known Subclasses:
EclOperationFactory,EglOperationFactory,EmlOperationFactory,EtlOperationFactory,EvlOperationFactory,FlockOperationFactory
public class EolOperationFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,AbstractOperation>operationCache
-
Constructor Summary
Constructors Constructor Description EolOperationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcreateCache()Deprecated.Add methods to the cache in the constructor insteadAbstractOperationgetOperationFor(java.lang.String name)Retrieves the exact operation based on the given name.AbstractOperationgetOptimisedOperation(java.lang.String name, java.lang.Object target, IModel owningModel, IEolContext context)booleanisOverridenDelegate(AbstractOperation operation)Checks whether the given operation is a DelegateBasedOperation and if so, whether its delegate operation is unknown (built-in) to this factory.
-
-
-
Field Detail
-
operationCache
protected final java.util.Map<java.lang.String,AbstractOperation> operationCache
-
-
Method Detail
-
createCache
@Deprecated protected void createCache()
Deprecated.Add methods to the cache in the constructor insteadFor backwards compatibility with 1.5
-
getOperationFor
public AbstractOperation getOperationFor(java.lang.String name)
Retrieves the exact operation based on the given name.- Parameters:
name- The operation name.- Returns:
- The cached operation, or
nullif no operation could be found.
-
getOptimisedOperation
public AbstractOperation getOptimisedOperation(java.lang.String name, java.lang.Object target, IModel owningModel, IEolContext context)
- Parameters:
name- The operation nameowningModel-target-context- The context- Returns:
- An optimal implementation for the requested operation, based on the context's state.
- Since:
- 1.6
-
isOverridenDelegate
public boolean isOverridenDelegate(AbstractOperation operation)
Checks whether the given operation is a DelegateBasedOperation and if so, whether its delegate operation is unknown (built-in) to this factory.- Parameters:
operation- The operation to test.- Returns:
trueif the operation has an unrecognised delegate,falseotherwise.- Since:
- 1.6
-
-