@Deprecated @ConsumerType public abstract class AbstractServiceReferenceConfig extends java.lang.Object
AbstractServiceReferenceConfig
may be used as a base class
to define ServletConfig
and FilterConfig
instances from OSGi ServiceReference
objects. The properties
of this service reference are used as the initialization parameters of the
configuration object.
The name of the servlet or filter may be retrieved from the service reference
by calling the static getName(ServiceReference)
method. This method
looks for the following service reference properties, assuming the first non-null
value found:
Constructor and Description |
---|
AbstractServiceReferenceConfig(ServletContext servletContext,
ServiceReference reference,
java.lang.String name)
Deprecated.
Sets up this base configuration object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInitParameter(java.lang.String name)
Deprecated.
|
java.util.Enumeration<?> |
getInitParameterNames()
Deprecated.
|
static java.lang.String |
getName(ServiceReference reference)
Deprecated.
Looks for a name value in the service reference properties.
|
ServletContext |
getServletContext()
Deprecated.
|
public AbstractServiceReferenceConfig(ServletContext servletContext, ServiceReference reference, java.lang.String name)
servletContext
- The ServletContext
attached to this
configuration.reference
- The service reference providing the initialization
parameter values.name
- The name of this configuration.getName()
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration<?> getInitParameterNames()
public ServletContext getServletContext()
public static java.lang.String getName(ServiceReference reference)
reference
- The service referenceCopyright © 2010 - 2020 Adobe. All Rights Reserved