public class OperationContributorRegistry extends Object
Constructor and Description |
---|
OperationContributorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
add(OperationContributor operationContributor)
Adds the specified
OperationContributor to the list of contributors
used to discover contributed operations by the registry. |
ObjectMethod |
findContributedMethodForEvaluatedParameters(Object target,
String name,
Object[] parameters,
IEolContext context)
Finds a contributed operation for the given target, name and parameters.
|
ObjectMethod |
findContributedMethodForUnevaluatedParameters(Object target,
String name,
List<Expression> parameterExpressions,
IEolContext context)
Finds a contributed operation that is invoked without prior evaluation
(i.e.
|
protected List<OperationContributor> |
getDefaultOperationContributors()
The list of
OperationContributor s used to discover contributed
operations by the registry. |
public void add(OperationContributor operationContributor)
Adds the specified OperationContributor
to the list of contributors
used to discover contributed operations by the registry. Contributors added
with this method have a lower precedence than the default operation
contributors.
To add an operation contributor with a higher precedence than one or more of
the default operation contributors, define a subclass that overrides the
getDefaultOperationContributors()
method.
protected List<OperationContributor> getDefaultOperationContributors()
OperationContributor
s used to discover contributed
operations by the registry. Subclasses may override this method to add,
remove or change the order of the OperationContributor
s used
by the registry.public ObjectMethod findContributedMethodForUnevaluatedParameters(Object target, String name, List<Expression> parameterExpressions, IEolContext context)
public ObjectMethod findContributedMethodForEvaluatedParameters(Object target, String name, Object[] parameters, IEolContext context)
Copyright © 2016. All rights reserved.