public abstract class AbstractMultiInstanceResolver<T> extends AbstractInstanceResolver<T>
InstanceResolver
with code
to handle multiple instances per server.Modifier and Type | Field and Description |
---|---|
protected Class<T> |
clazz |
protected WSEndpoint |
owner |
Constructor and Description |
---|
AbstractMultiInstanceResolver(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
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. |
findAnnotatedMethod, getResourceInjector, invokeMethod
createDefault, createDefault, createFromInstanceResolverAnnotation, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, resolve, start
protected WSEndpoint owner
protected final void prepare(T t)
protected final T create()
public void start(WSWebServiceContext wsc, WSEndpoint endpoint)
InstanceResolver
WSEndpoint
when it's set up.
This is an opportunity for InstanceResolver
to do a endpoint-specific initialization process.
start
in class InstanceResolver<T>
wsc
- The WebServiceContext
instance to be injected
to the user instances (assuming InstanceResolver
protected final void dispose(T instance)
Copyright © 2015 Oracle Corporation. All rights reserved.