public abstract class Invoker extends Object
invoke(java.lang.reflect.Method, java.lang.Object...) for a web service invocation. Finally, Invoker does the actual invocation of web service on endpoint instance. Container also injects the provided
WebServiceContext and takes care of invoking
javax.annotation.PostConstruct methods, if present, on the endpoint implementation.
Provider.createEndpoint(String, Class, Invoker, WebServiceFeature...)
| Constructor and Description |
|---|
Invoker()
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
inject(WebServiceContext
JAX-WS runtimes calls this method to ask container to inject WebServiceContext on the endpoint instance.
|
abstract Object |
invoke(Method
JAX-WS runtime calls this method to do the actual web service invocation on endpoint instance.
|
public abstract void inject(WebServiceContextwebServiceContext) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException
WebServiceContext object uses thread-local information to return the correct information during the actual endpoint invocation regardless of how many threads are concurrently being used to serve requests.
webServiceContext - a holder for MessageContext
IllegalAccessException - if the injection done by reflection API throws this exception
IllegalArgumentException - if the injection done by reflection API throws this exception
InvocationTargetException - if the injection done by reflection API throws this exception
public abstract Objectinvoke(Method m, Object ... args) throws IllegalAccessException , IllegalArgumentException , InvocationTargetException
WebServiceContext.getMessageContext() gives the correct information for this invocation.
m - Method to be invoked on the service
args - Method arguments
IllegalAccessException - if the invocation done by reflection API throws this exception
IllegalArgumentException - if the invocation done by reflection API throws this exception
InvocationTargetException - if the invocation done by reflection API throws this exception
Method.invoke(java.lang.Object, java.lang.Object...)