Package | Description |
---|---|
org.glassfish.jersey.ext.cdi1x.internal |
Jersey internal package supporting Jersey CDI integration.
|
org.glassfish.jersey.model |
Common Jersey model related classes and interfaces.
|
org.glassfish.jersey.model.internal |
Common Jersey internal model related classes and interfaces.
|
org.glassfish.jersey.server.internal |
Jersey server-side internal classes.
|
org.glassfish.jersey.spi |
Common Jersey service provider contract (SPI) classes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CdiServerComponentProvider.bind(Class<?> component,
ContractProvider contractProvider) |
boolean |
CdiComponentProvider.bind(Class<?> component,
ContractProvider contractProvider) |
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 Predicate<ContractProvider> |
ComponentBag.BINDERS_ONLY
A filtering strategy that includes only models that contain
Binder provider contract. |
static Predicate<ContractProvider> |
ComponentBag.EXCLUDE_EMPTY
A filtering strategy that excludes models with no recognized contracts.
|
static Predicate<ContractProvider> |
ComponentBag.EXECUTOR_SERVICE_PROVIDER_ONLY
A filtering strategy that includes only models that contain
ExecutorServiceProvider provider contract. |
static BiPredicate<ContractProvider,org.glassfish.jersey.internal.inject.InjectionManager> |
ComponentBag.EXTERNAL_ONLY
A filtering strategy that includes only models that contain contract registrable by
InjectionManager . |
static Predicate<ContractProvider> |
ComponentBag.INCLUDE_ALL
A filtering strategy that accepts any contract provider model.
|
static Predicate<ContractProvider> |
ComponentBag.SCHEDULED_EXECUTOR_SERVICE_PROVIDER_ONLY
A filtering strategy that includes only models that contain
ScheduledExecutorServiceProvider provider contract. |
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 |
---|---|
static Predicate<ContractProvider> |
ComponentBag.excludeMetaProviders(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
A method creates the
Predicate which is able to filter all Jersey meta-providers along with the components which
is able to register the current used InjectionManager . |
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(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(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(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,
Predicate<ContractProvider> registrationStrategy)
Create a new
RuntimeConfig instance. |
Modifier and Type | Method and Description |
---|---|
<T> void |
JerseyResourceContext.unsafeBindResource(Class<T> resourceClass,
ContractProvider providerModel)
Bind a resource class in a HK2 context.
|
void |
JerseyResourceContext.unsafeBindResource(Object resource,
ContractProvider providerModel)
Bind a resource instance in a InjectionManager.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
ComponentProvider.bind(Class<?> component,
ContractProvider contractProvider)
Jersey will invoke this method before binding of each component class internally
during initialization of it's injection manager.
|
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.