Package com.sun.xml.ws.server
Class AbstractMultiInstanceResolver<T>
- java.lang.Object
-
- com.sun.xml.ws.api.server.InstanceResolver<T>
-
- com.sun.xml.ws.api.server.AbstractInstanceResolver<T>
-
- com.sun.xml.ws.server.AbstractMultiInstanceResolver<T>
-
- Direct Known Subclasses:
HttpSessionInstanceResolver,StatefulInstanceResolver
public abstract class AbstractMultiInstanceResolver<T> extends AbstractInstanceResolver<T>
Partial implementation ofInstanceResolverwith code to handle multiple instances per server.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<T>clazzprotected WSEndpointowner
-
Constructor Summary
Constructors Constructor Description AbstractMultiInstanceResolver(Class<T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Tcreate()Creates a new instance via the default constructor.protected voiddispose(T instance)protected voidprepare(T t)Perform resource injection on the given instance.voidstart(WSWebServiceContext wsc, WSEndpoint endpoint)Called byWSEndpointwhen it's set up.-
Methods inherited from class com.sun.xml.ws.api.server.AbstractInstanceResolver
findAnnotatedMethod, getResourceInjector, invokeMethod
-
Methods inherited from class com.sun.xml.ws.api.server.InstanceResolver
createDefault, createDefault, createFromInstanceResolverAnnotation, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, resolve, start
-
-
-
-
Field Detail
-
owner
protected WSEndpoint owner
-
-
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:InstanceResolverCalled byWSEndpointwhen it's set up.This is an opportunity for
InstanceResolverto do a endpoint-specific initialization process.- Overrides:
startin classInstanceResolver<T>- Parameters:
wsc- TheWebServiceContextinstance to be injected to the user instances (assumingInstanceResolver
-
dispose
protected final void dispose(T instance)
-
-