private static final class ResourceConfig.ImmutableState extends ResourceConfig.State
Modifier | Constructor and Description |
---|---|
private |
ImmutableState(ResourceConfig.State original) |
Modifier and Type | Method and Description |
---|---|
ResourceConfig.State |
addProperties(java.util.Map<java.lang.String,?> properties)
Add properties to
ResourceConfig . |
void |
configureAutoDiscoverableProviders(org.glassfish.hk2.api.ServiceLocator locator,
boolean forcedOnly)
Configure
auto-discoverables in the HK2 service locator. |
void |
configureMetaProviders(org.glassfish.hk2.api.ServiceLocator locator)
Configure HK2 binders in the HK2 service locator and enable JAX-RS features.
|
ResourceConfig.State |
property(java.lang.String name,
java.lang.Object value) |
ResourceConfig.State |
register(java.lang.Class<?> componentClass) |
ResourceConfig.State |
register(java.lang.Class<?> componentClass,
java.lang.Class<?>... contracts) |
ResourceConfig.State |
register(java.lang.Class<?> componentClass,
int bindingPriority) |
ResourceConfig.State |
register(java.lang.Class<?> componentClass,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts) |
ResourceConfig.State |
register(java.lang.Object component) |
ResourceConfig.State |
register(java.lang.Object component,
java.lang.Class<?>... contracts) |
ResourceConfig.State |
register(java.lang.Object component,
int bindingPriority) |
ResourceConfig.State |
register(java.lang.Object component,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts) |
void |
registerFinder(ResourceFinder resourceFinder) |
void |
registerResources(java.util.Set<Resource> resources) |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
ResourceConfig.State |
setProperties(java.util.Map<java.lang.String,?> properties)
Set the configured properties to the provided map of properties.
|
getClassLoader, getConfiguration, getModelEnhancer, getResourceFinders, getResources, loadFrom, setApplicationName
equals, getClasses, getComponentBag, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getRuntimeType, hashCode, isEnabled, isEnabled, isProperty, isRegistered, isRegistered
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isProperty
private ImmutableState(ResourceConfig.State original)
public void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader
in class ResourceConfig.State
public void registerResources(java.util.Set<Resource> resources)
registerResources
in class ResourceConfig.State
public void registerFinder(ResourceFinder resourceFinder)
registerFinder
in class ResourceConfig.State
public ResourceConfig.State addProperties(java.util.Map<java.lang.String,?> properties)
CommonConfig
ResourceConfig
.
If any of the added properties exists already, he values of the existing
properties will be replaced with new values.addProperties
in class CommonConfig
properties
- properties to add.public ResourceConfig.State property(java.lang.String name, java.lang.Object value)
property
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
property
in class CommonConfig
public ResourceConfig.State register(java.lang.Class<?> componentClass)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Class<?> componentClass, int bindingPriority)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Class<?> componentClass, java.lang.Class<?>... contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Class<?> componentClass, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Object component)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Object component, int bindingPriority)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Object component, java.lang.Class<?>... contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State register(java.lang.Object component, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ResourceConfig.State setProperties(java.util.Map<java.lang.String,?> properties)
CommonConfig
setProperties
in class CommonConfig
properties
- new map of properties to be set.public void configureAutoDiscoverableProviders(org.glassfish.hk2.api.ServiceLocator locator, boolean forcedOnly)
CommonConfig
auto-discoverables
in the HK2 service locator.configureAutoDiscoverableProviders
in class CommonConfig
locator
- locator in which the auto-discoverables should be configured.forcedOnly
- defines whether all or only forced auto-discoverables should be configured.public void configureMetaProviders(org.glassfish.hk2.api.ServiceLocator locator)
CommonConfig
configureMetaProviders
in class CommonConfig
locator
- locator in which the binders and features should be configured.