com.sun.xml.ws.server
Class AbstractMultiInstanceResolver<T>

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

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

Partial implementation of InstanceResolver with code to handle multiple instances per server.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.server.AbstractInstanceResolver
AbstractInstanceResolver.FieldInjectionPlan<T,R>, AbstractInstanceResolver.InjectionPlan<T,R>, AbstractInstanceResolver.MethodInjectionPlan<T,R>
 
Field Summary
protected  Class<T> clazz
           
protected  WSEndpoint owner
           
 
Constructor Summary
AbstractMultiInstanceResolver(Class<T> clazz)
           
 
Method Summary
protected  T create()
          Creates a new instance via the default constructor.
protected  void dispose(T instance)
           
protected  void prepare(T t)
          Perform resource injection on the given instance.
 void start(WSWebServiceContext wsc, WSEndpoint endpoint)
          Called by WSEndpoint when it's set up.
 
Methods inherited from class com.sun.xml.ws.server.AbstractInstanceResolver
buildInjectionPlan, findAnnotatedMethod, getResourceInjector, invokeMethod
 
Methods inherited from class com.sun.xml.ws.api.server.InstanceResolver
createDefault, createDefault, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, resolve, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

protected final Class<T> clazz

owner

protected WSEndpoint owner
Constructor Detail

AbstractMultiInstanceResolver

public AbstractMultiInstanceResolver(Class<T> clazz)
Method Detail

prepare

protected final void prepare(T t)
Perform resource injection on the given instance.


create

protected final T create()
Creates a new instance via the default constructor.


start

public void start(WSWebServiceContext wsc,
                  WSEndpoint endpoint)
Description copied from class: InstanceResolver
Called by WSEndpoint when it's set up.

This is an opportunity for InstanceResolver to do a endpoint-specific initialization process.

Overrides:
start in class InstanceResolver<T>
Parameters:
wsc - The WebServiceContext instance to be injected to the user instances (assuming InstanceResolver

dispose

protected final void dispose(T instance)