Package com.sun.xml.ws.api.server
Class AbstractInstanceResolver<T>
- java.lang.Object
-
- com.sun.xml.ws.api.server.InstanceResolver<T>
-
- com.sun.xml.ws.api.server.AbstractInstanceResolver<T>
-
- Direct Known Subclasses:
AbstractMultiInstanceResolver,SingletonResolver
public abstract class AbstractInstanceResolver<T> extends InstanceResolver<T>
Partial implementation ofInstanceResolverwith convenience methods to do the resource injection.- Since:
- 2.2.6
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description AbstractInstanceResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodfindAnnotatedMethod(Class clazz, Class<? extends Annotation> annType)Finds the method that has the given annotation, while making sure that there's only at most one such method.protected static ResourceInjectorgetResourceInjector(WSEndpoint endpoint)protected static voidinvokeMethod(Method method, Object instance, Object... args)Helper for invoking a method with elevated privilege.-
Methods inherited from class com.sun.xml.ws.api.server.InstanceResolver
createDefault, createDefault, createFromInstanceResolverAnnotation, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, resolve, start, start
-
-
-
-
Method Detail
-
getResourceInjector
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint)
-
invokeMethod
protected static void invokeMethod(@Nullable Method method, Object instance, Object... args)Helper for invoking a method with elevated privilege.
-
findAnnotatedMethod
@Nullable protected final Method findAnnotatedMethod(Class clazz, Class<? extends Annotation> annType)
Finds the method that has the given annotation, while making sure that there's only at most one such method.
-
-