Package com.sun.xml.ws.api.server
Class ResourceInjector
- java.lang.Object
-
- com.sun.xml.ws.api.server.ResourceInjector
-
- Direct Known Subclasses:
DefaultResourceInjector
public abstract class ResourceInjector extends Object
Represents a functionality of the container to inject resources to application service endpoint object (usually but not necessarily as per JavaEE spec.)If
Container.getSPI(Class)returns a valid instance ofResourceInjector, The JAX-WS RI will call theinject(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
PostConstructcallback, so implementations of this class need not do so.- Author:
- Kohsuke Kawaguchi
- See Also:
Container
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceInjectorSTANDALONEFallbackResourceInjectorimplementation used when theContainerdoesn't provide one.
-
Constructor Summary
Constructors Constructor Description ResourceInjector()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidinject(WSWebServiceContext context, Object instance)Performs resource injection.
-
-
-
Field Detail
-
STANDALONE
public static final ResourceInjector STANDALONE
FallbackResourceInjectorimplementation used when theContainerdoesn't provide one.Just inject
WSWebServiceContextand done.
-
-
Method Detail
-
inject
public abstract void inject(@NotNull WSWebServiceContext context, @NotNull Object instance)Performs resource injection.- Parameters:
context-WebServiceContextimplementation to be injected into the instance.instance- Instance of the service endpoint class to which resources will be injected.- Throws:
jakarta.xml.ws.WebServiceException- If the resource injection fails.
-
-