| Package | Description |
|---|---|
| org.glassfish.jersey.internal.inject |
Common Jersey internal injection utility classes.
|
| org.glassfish.jersey.model | |
| org.glassfish.jersey.model.internal |
| Modifier and Type | Method and Description |
|---|---|
static void |
ProviderBinder.bindProvider(Class<?> providerClass,
ContractProvider model,
org.glassfish.hk2.api.DynamicConfiguration dc)
Bind contract provider model to a provider class using the supplied HK2 dynamic configuration.
|
static void |
ProviderBinder.bindProvider(Object providerInstance,
ContractProvider model,
org.glassfish.hk2.api.DynamicConfiguration dc)
Bind contract provider model to a provider instance using the supplied
HK2 dynamic configuration.
|
static boolean |
Providers.checkProviderRuntime(Class<?> component,
ContractProvider model,
javax.ws.rs.RuntimeType runtimeConstraint,
boolean scanned,
boolean isResource)
Check the
component whether it is appropriate correctly configured for client or server
runtime. |
| Modifier and Type | Method and Description |
|---|---|
ContractProvider |
ContractProvider.Builder.build()
Build a new contract provider model.
|
| Modifier and Type | Method and Description |
|---|---|
static ContractProvider.Builder |
ContractProvider.builder(ContractProvider original)
Create new contract provider model builder from an existing one.
|
| Modifier and Type | Field and Description |
|---|---|
static Inflector<ContractProvider.Builder,ContractProvider> |
ComponentBag.AS_IS
Contract provider model enhancer that builds a model as is, without any
modifications.
|
static com.google.common.base.Predicate<ContractProvider> |
ComponentBag.BINDERS_ONLY
A filtering strategy that includes only models that contain HK2 Binder provider contract.
|
static com.google.common.base.Predicate<ContractProvider> |
ComponentBag.EXCLUDE_EMPTY
A filtering strategy that excludes models with no recognized contracts.
|
static com.google.common.base.Predicate<ContractProvider> |
ComponentBag.EXCLUDE_META_PROVIDERS
A filtering strategy that excludes all pure meta-provider models (i.e.
|
static com.google.common.base.Predicate<ContractProvider> |
ComponentBag.INCLUDE_ALL
A filtering strategy that accepts any contract provider model.
|
| Modifier and Type | Method and Description |
|---|---|
ContractProvider |
ComponentBag.getModel(Class<?> componentClass)
Get a model for a given component class, or
null if no such component is registered
in the component bag. |
static ContractProvider |
ComponentBag.modelFor(Class<?> componentClass)
Create a contract provider model by introspecting a component class.
|
| Modifier and Type | Method and Description |
|---|---|
protected Inflector<ContractProvider.Builder,ContractProvider> |
CommonConfig.getModelEnhancer(Class<?> componentClass)
An extension point that provides a way how to define a custom enhancement/update
operation of a contract provider model registration being produced for a given
component class.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
ComponentBag.getClasses(com.google.common.base.Predicate<ContractProvider> filter)
Get a subset of all registered component classes using the
filter predicate
to determine for each component class based on it's contract provider class model whether
it should be kept or filtered out. |
Set<Object> |
ComponentBag.getInstances(com.google.common.base.Predicate<ContractProvider> filter)
Get a subset of all registered component instances using the
filter predicate
to determine for each component instance based on it's contract provider class model whether
it should be kept or filtered out. |
static ComponentBag |
ComponentBag.newInstance(com.google.common.base.Predicate<ContractProvider> registrationStrategy)
Create new empty component bag.
|
boolean |
ComponentBag.register(Class<?> componentClass,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component class using a given registration strategy.
|
boolean |
ComponentBag.register(Class<?> componentClass,
int priority,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component class as a contract provider with an explicitly specified binding priority.
|
boolean |
ComponentBag.register(Class<?> componentClass,
Map<Class<?>,Integer> contracts,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component class as a contract provider for the specified contracts.
|
boolean |
ComponentBag.register(Class<?> componentClass,
Set<Class<?>> contracts,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component class as a contract provider for the specified contracts.
|
boolean |
ComponentBag.register(Object component,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component using a given registration strategy.
|
boolean |
ComponentBag.register(Object component,
int priority,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component as a contract provider with an explicitly specified binding priority.
|
boolean |
ComponentBag.register(Object component,
Map<Class<?>,Integer> contracts,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component as a contract provider for the specified contracts.
|
boolean |
ComponentBag.register(Object component,
Set<Class<?>> contracts,
Inflector<ContractProvider.Builder,ContractProvider> modelEnhancer)
Register a component as a contract provider for the specified contracts.
|
| Constructor and Description |
|---|
CommonConfig(javax.ws.rs.RuntimeType type,
com.google.common.base.Predicate<ContractProvider> registrationStrategy)
Create a new
RuntimeConfig instance. |
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.