public class SpringComponentProvider extends Object implements ComponentProvider
| Constructor and Description |
|---|
SpringComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind(Class<?> component,
Set<Class<?>> providerContracts)
Jersey will invoke this method before binding of each component class internally
during initialization of it's HK2 service locator.
|
void |
done()
Jersey will invoke this method after all component classes have been bound.
|
void |
initialize(org.glassfish.hk2.api.ServiceLocator locator)
Initializes the component provider with a reference to a HK2 service locator
instance, which will get used in the application to manage individual components.
|
public void initialize(org.glassfish.hk2.api.ServiceLocator locator)
ComponentProviderinitialize in interface ComponentProviderlocator - an HK2 service locator.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 void done()
ComponentProviderdone in interface ComponentProviderCopyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.