Package com.sun.xml.ws.api.server
Class ResourceInjector
java.lang.Object
com.sun.xml.ws.api.server.ResourceInjector
- Direct Known Subclasses:
DefaultResourceInjector
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 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.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceInjectorFallbackResourceInjectorimplementation used when theContainerdoesn't provide one. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidinject(WSWebServiceContext context, Object instance) Performs resource injection.
-
Field Details
-
STANDALONE
FallbackResourceInjectorimplementation used when theContainerdoesn't provide one.Just inject
WSWebServiceContextand done.
-
-
Constructor Details
-
ResourceInjector
protected ResourceInjector()Default constructor.
-
-
Method Details
-
inject
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:
WebServiceException- If the resource injection fails.
-