public abstract class ResourceInjector extends Object
If Container.getSPI(Class)
returns a valid instance of ResourceInjector
,
The JAX-WS RI will call the inject(com.sun.xml.ws.api.server.WSWebServiceContext, java.lang.Object)
method for each service endpoint
instance that it manages.
The JAX-WS RI will be responsible for calling PostConstruct
callback,
so implementations of this class need not do so.
Container
Modifier and Type | Field and Description |
---|---|
static ResourceInjector |
STANDALONE
Fallback
ResourceInjector implementation used when the Container
doesn't provide one. |
Constructor and Description |
---|
ResourceInjector() |
Modifier and Type | Method and Description |
---|---|
abstract void |
inject(WSWebServiceContext context,
Object instance)
Performs resource injection.
|
public static final ResourceInjector STANDALONE
ResourceInjector
implementation used when the Container
doesn't provide one.
Just inject WSWebServiceContext
and done.
public abstract void inject(@NotNull WSWebServiceContext context, @NotNull Object instance)
context
- WebServiceContext
implementation to be injected into the instance.instance
- Instance of the service endpoint class to which resources will be injected.WebServiceException
- If the resource injection fails.Copyright © 2015 Oracle Corporation. All rights reserved.