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(org.springframework.core.style.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(org.springframework.core.style.ToStringCreator creator)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.