public abstract class Invoker extends Object
invoke(java.lang.reflect.Method, java.lang.Object...)
为Web服务调用。最后,调用Web服务端点是否实际调用实例。容器还将提供
WebServiceContext
照顾
javax.annotation.PostConstruct
方法调用,如果存在,在端点上的实现。
Provider.createEndpoint(String, Class, Invoker, WebServiceFeature...)
public abstract void inject(WebServiceContext webServiceContext) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
WebServiceContext
对象使用线程本地信息返回实际的端点调用过程中正确的信息,不管有多少线程同时正在使用的服务请求。
webServiceContext
MessageContext
IllegalAccessException
如果注射通过反射API引发此异常
IllegalArgumentException
如果注射通过反射API引发此异常
InvocationTargetException
如果注射通过反射API引发此异常
public abstract Object invoke(方法 m, Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
WebServiceContext.getMessageContext()
这个调用提供了正确的信息。
m
方法被调用的服务
args
-方法参数
IllegalAccessException
如果调用通过反射API引发此异常
IllegalArgumentException
如果调用通过反射API引发此异常
InvocationTargetException
如果调用通过反射API引发此异常
Method.invoke(java.lang.Object, java.lang.Object...)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.