public class CdiServerComponentProvider extends Object implements ComponentProvider
| Constructor and Description |
|---|
CdiServerComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind(Class<?> component,
ContractProvider contractProvider)
Jersey will invoke this method before binding of each component class internally
during initialization of it's injection manager.
|
boolean |
bind(Class<?> component,
Set<Class<?>> providerContracts)
Jersey will invoke this method before binding of each component class internally
during initialization of it's injection manager.
|
void |
done()
Jersey will invoke this method after all component classes have been bound.
|
void |
initialize(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
Initializes the component provider with a reference to a injection manager
instance, which will get used in the application to manage individual components.
|
public void initialize(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
ComponentProviderinitialize in interface ComponentProviderinjectionManager - an injection manager.public boolean bind(Class<?> component, Set<Class<?>> providerContracts)
ComponentProviderbind in interface ComponentProvidercomponent - a component (resource/provider) class.providerContracts - provider contracts implemented by given component.public boolean bind(Class<?> component, ContractProvider contractProvider)
ComponentProviderbind in interface ComponentProvidercomponent - a component (resource/provider) class.contractProvider - optional registered ContractProvider of the component.public void done()
ComponentProviderdone in interface ComponentProviderCopyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.