Class EolOperationFactory
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.EolOperationFactory
- Direct Known Subclasses:
EclOperationFactory
,EglOperationFactory
,EmlOperationFactory
,EtlOperationFactory
,EvlOperationFactory
,FlockOperationFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.Add methods to the cache in the constructor insteadgetOperationFor
(String name) Retrieves the exact operation based on the given name.getOptimisedOperation
(String name, Object target, IModel owningModel, IEolContext context) 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.
-
Field Details
-
operationCache
-
-
Constructor Details
-
EolOperationFactory
public EolOperationFactory()
-
-
Method Details
-
createCache
Deprecated.Add methods to the cache in the constructor insteadFor backwards compatibility with 1.5 -
getOperationFor
Retrieves the exact operation based on the given name.- Parameters:
name
- The operation name.- Returns:
- The cached operation, or
null
if no operation could be found.
-
getOptimisedOperation
public AbstractOperation getOptimisedOperation(String name, 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
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:
true
if the operation has an unrecognised delegate,false
otherwise.- Since:
- 1.6
-