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)
ComponentProvider
initialize
in interface ComponentProvider
injectionManager
- an injection manager.public boolean bind(Class<?> component, Set<Class<?>> providerContracts)
ComponentProvider
bind
in interface ComponentProvider
component
- a component (resource/provider) class.providerContracts
- provider contracts implemented by given component.public boolean bind(Class<?> component, ContractProvider contractProvider)
ComponentProvider
bind
in interface ComponentProvider
component
- a component (resource/provider) class.contractProvider
- optional registered ContractProvider
of the component.public void done()
ComponentProvider
done
in interface ComponentProvider
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.