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, invokeMethodcreateDefault, createDefault, createFromInstanceResolverAnnotation, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, resolve, startprotected WSEndpoint owner
protected final void prepare(T t)
protected final T create()
public void start(WSWebServiceContext wsc, WSEndpoint endpoint)
InstanceResolverWSEndpoint 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 InstanceResolverprotected final void dispose(T instance)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.