|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.service.DefaultServiceInvoker
public class DefaultServiceInvoker
The default ServiceInvoker implementation that reflectively invokes a method on the target instance associated with a particular service.
| Constructor Summary | |
|---|---|
DefaultServiceInvoker(ServiceRequest request,
Object targetInstance,
List<MethodInvoker> operationCandidates)
Creates a new ServiceInvoker instance. |
|
| Method Summary | |
|---|---|
Object |
invoke()
Invokes the service and returns the result, usually the return value of a method invocation |
protected Object |
invokeService(MethodInvoker invoker)
Invokes the service and returns the result. |
protected MethodInvoker |
selectMethodInvoker()
Selects the MethodInvoker to be used for this request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultServiceInvoker(ServiceRequest request,
Object targetInstance,
List<MethodInvoker> operationCandidates)
request - the request to processtargetInstance - the target instance that should be invokedoperationCandidates - list of methods, usually only more than one if the method is overloaded| Method Detail |
|---|
public Object invoke()
ServiceInvoker
invoke in interface ServiceInvokerprotected MethodInvoker selectMethodInvoker()
protected Object invokeService(MethodInvoker invoker)
invoker - the MethodInvoker to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||