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)
ComponentProvider
initialize
in interface ComponentProvider
locator
- an HK2 service locator.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 void done()
ComponentProvider
done
in interface ComponentProvider
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.