Uses of Class
org.glassfish.jersey.model.ContractProvider
Package
Description
Jersey internal package supporting Jersey CDI integration.
Common Jersey internal injection utility classes.
Common Jersey model related classes and interfaces.
Common Jersey internal model related classes and interfaces.
Jersey server-side internal classes.
Common Jersey service provider contract (SPI) classes.
-
Uses of ContractProvider in org.glassfish.jersey.ext.cdi1x.internal
Modifier and TypeMethodDescriptionboolean
CdiComponentProvider.bind
(Class<?> component, ContractProvider contractProvider) boolean
CdiServerComponentProvider.bind
(Class<?> component, ContractProvider contractProvider) -
Uses of ContractProvider in org.glassfish.jersey.internal.inject
Modifier and TypeMethodDescriptionstatic <T> void
ProviderBinder.bindProvider
(Class<T> providerClass, ContractProvider model, InjectionManager injectionManager) Bind contract provider model to a provider class using the supplied injection manager.static void
ProviderBinder.bindProvider
(Object providerInstance, ContractProvider model, InjectionManager injectionManager) Bind contract provider model to a provider instance using the supplied injection manager.static boolean
Providers.checkProviderRuntime
(Class<?> component, ContractProvider model, RuntimeType runtimeConstraint, boolean scanned, boolean isResource) Check thecomponent
whether it is appropriate correctly configured for client or serverruntime
. -
Uses of ContractProvider in org.glassfish.jersey.model
Modifier and TypeMethodDescriptionContractProvider.Builder.build()
Build a new contract provider model.Modifier and TypeMethodDescriptionstatic ContractProvider.Builder
ContractProvider.builder
(ContractProvider original) Create new contract provider model builder from an existing one. -
Uses of ContractProvider in org.glassfish.jersey.model.internal
Modifier and TypeFieldDescriptionstatic final Predicate<ContractProvider>
ComponentBag.BINDERS_ONLY
A filtering strategy that includes only models that containBinder
provider contract.static final Predicate<ContractProvider>
ComponentBag.EXCLUDE_EMPTY
A filtering strategy that excludes models with no recognized contracts.static final Predicate<ContractProvider>
ComponentBag.EXECUTOR_SERVICE_PROVIDER_ONLY
A filtering strategy that includes only models that containExecutorServiceProvider
provider contract.static final BiPredicate<ContractProvider,
InjectionManager> ComponentBag.EXTERNAL_ONLY
A filtering strategy that includes only models that contain contract registrable byInjectionManager
.static final Predicate<ContractProvider>
ComponentBag.INCLUDE_ALL
A filtering strategy that accepts any contract provider model.static final Predicate<ContractProvider>
ComponentBag.SCHEDULED_EXECUTOR_SERVICE_PROVIDER_ONLY
A filtering strategy that includes only models that containScheduledExecutorServiceProvider
provider contract.Modifier and TypeMethodDescriptionGet a model for a given component class, ornull
if no such component is registered in the component bag.static ContractProvider
Create a contract provider model by introspecting a component class.Modifier and TypeMethodDescriptionstatic Predicate<ContractProvider>
ComponentBag.excludeMetaProviders
(InjectionManager injectionManager) A method creates thePredicate
which is able to filter all Jersey meta-providers along with the components which is able to register the current usedInjectionManager
.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 TypeMethodDescriptionComponentBag.getClasses
(Predicate<ContractProvider> filter) Get a subset of all registered component classes using thefilter
predicate to determine for each component class based on it's contract provider class model whether it should be kept or filtered out.ComponentBag.getInstances
(Predicate<ContractProvider> filter) Get a subset of all registered component instances using thefilter
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, 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
(Class<?> componentClass, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) Register a component class 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.boolean
ComponentBag.register
(Object component, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) Register a component using a given registration strategy.ModifierConstructorDescriptionCommonConfig
(RuntimeType type, Predicate<ContractProvider> registrationStrategy) Create a newRuntimeConfig
instance. -
Uses of ContractProvider in org.glassfish.jersey.server.internal
Modifier and TypeMethodDescription<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. -
Uses of ContractProvider in org.glassfish.jersey.spi
Modifier and TypeMethodDescriptiondefault 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.