Configure the
ResourceConfig.
The
ResourceConfig is configured such that the following classes
may be injected onto the field of a root resource class or a parameter
of a method of root resource class that is annotated with
javax.ws.rs.core.Context:
HttpServletRequest,
HttpServletResponse,
ServletContext and
WebConfig.
Any root resource class in registered in the resource configuration
that is an interface is processed as follows.
If the class is an interface and there exists a JNDI named object
with the fully qualified class name as the JNDI name then that named
object is added as a singleton root resource and the class is removed
from the set of root resource classes.
An inheriting class may override this method to configure the
ResourceConfig to provide alternative or additional instances
that are resource or provider classes or instances, and may modify the
features and properties of the
ResourceConfig. For an inheriting
class to extend configuration behaviour the overriding method MUST call
super.configure(servletConfig, rc, wa)
as the first statement
of that method.
This method will be called only once at initiation. Subsequent
reloads of the Web application will not result in subsequence calls to
this method.