com.sun.xml.ws.api.server
Class AbstractInstanceResolver<T>

java.lang.Object
  extended by com.sun.xml.ws.api.server.InstanceResolver<T>
      extended by com.sun.xml.ws.api.server.AbstractInstanceResolver<T>
Direct Known Subclasses:
AbstractMultiInstanceResolver, SingletonResolver

public abstract class AbstractInstanceResolver<T>
extends InstanceResolver<T>

Partial implementation of InstanceResolver with convenience methods to do the resource injection.

Since:
2.2.6

Constructor Summary
AbstractInstanceResolver()
           
 
Method Summary
protected  java.lang.reflect.Method findAnnotatedMethod(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annType)
          Finds the method that has the given annotation, while making sure that there's only at most one such method.
protected static ResourceInjector getResourceInjector(WSEndpoint endpoint)
           
protected static void invokeMethod(java.lang.reflect.Method method, java.lang.Object instance, java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInstanceResolver

public AbstractInstanceResolver()
Method Detail

getResourceInjector

protected static ResourceInjector getResourceInjector(WSEndpoint endpoint)

invokeMethod

protected static void invokeMethod(@Nullable
                                   java.lang.reflect.Method method,
                                   java.lang.Object instance,
                                   java.lang.Object... args)
Helper for invoking a method with elevated privilege.


findAnnotatedMethod

@Nullable
protected final java.lang.reflect.Method findAnnotatedMethod(java.lang.Class clazz,
                                                                      java.lang.Class<? extends java.lang.annotation.Annotation> annType)
Finds the method that has the given annotation, while making sure that there's only at most one such method.



Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.