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, setApplicationNameequals, getClasses, getComponentBag, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getRuntimeType, hashCode, isEnabled, isEnabled, isProperty, isRegistered, isRegisteredclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisPropertyprivate ImmutableState(ResourceConfig.State original)
public void setClassLoader(java.lang.ClassLoader classLoader)
setClassLoader in class ResourceConfig.Statepublic void registerResources(java.util.Set<Resource> resources)
registerResources in class ResourceConfig.Statepublic void registerFinder(ResourceFinder resourceFinder)
registerFinder in class ResourceConfig.Statepublic ResourceConfig.State addProperties(java.util.Map<java.lang.String,?> properties)
CommonConfigResourceConfig.
If any of the added properties exists already, he values of the existing
properties will be replaced with new values.addProperties in class CommonConfigproperties - 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 CommonConfigpublic ResourceConfig.State register(java.lang.Class<?> componentClass)
register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>register in class CommonConfigpublic 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 CommonConfigpublic 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 CommonConfigpublic 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 CommonConfigpublic ResourceConfig.State register(java.lang.Object component)
register in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>register in class CommonConfigpublic 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 CommonConfigpublic 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 CommonConfigpublic 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 CommonConfigpublic ResourceConfig.State setProperties(java.util.Map<java.lang.String,?> properties)
CommonConfigsetProperties in class CommonConfigproperties - new map of properties to be set.public void configureAutoDiscoverableProviders(org.glassfish.hk2.api.ServiceLocator locator,
boolean forcedOnly)
CommonConfigauto-discoverables in the HK2 service locator.configureAutoDiscoverableProviders in class CommonConfiglocator - 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)
CommonConfigconfigureMetaProviders in class CommonConfiglocator - locator in which the binders and features should be configured.