Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.ws.spi.Invoker
public abstract class Invoker extends Object
Invoker hides the detail of calling into application endpoint
implementation. Container hands over an implementation of Invoker
to JAX-WS runtime, and jax-ws runtime calls 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 webServiceContext)
JAX-WS runtimes calls this method to ask container to inject WebServiceContext on the endpoint instance. |
abstract Object |
invoke(Method m,
Object... args)
JAX-WS runtime calls this method to do the actual web service invocation on endpoint instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Invoker()
Method Detail |
---|
public abstract void inject(WebServiceContext webServiceContext) 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 MessageContextIllegalAccessException
- if the injection done
by reflection API throws this exceptionIllegalArgumentException
- if the injection done
by reflection API throws this exceptionInvocationTargetException
- if the injection done
by reflection API throws this exceptionpublic abstract Object invoke(Method m, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
WebServiceContext.getMessageContext()
gives the correct
information for this invocation.
m
- Method to be invoked on the serviceargs
- Method argumentsIllegalAccessException
- if the invocation done
by reflection API throws this exceptionIllegalArgumentException
- if the invocation done
by reflection API throws this exceptionInvocationTargetException
- if the invocation done
by reflection API throws this exceptionMethod.invoke(java.lang.Object, java.lang.Object...)
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.