public abstract class AbstractDiscoveredOperation extends Object implements Operation
endpoints operations
discovered by a
EndpointDiscoverer
.Constructor and Description |
---|
AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Create a new
AbstractDiscoveredOperation instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFields(ToStringCreator creator) |
OperationMethod |
getOperationMethod() |
OperationType |
getType()
Returns the
type of the operation. |
Object |
invoke(InvocationContext context)
Invoke the underlying operation using the given
context . |
String |
toString() |
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
AbstractDiscoveredOperation
instance.operationMethod
- the method backing the operationinvoker
- the operation invoker to usepublic OperationMethod getOperationMethod()
public OperationType getType()
Operation
type
of the operation.public Object invoke(InvocationContext context)
Operation
context
.protected void appendFields(ToStringCreator creator)