public class InjectionBinder
extends org.glassfish.hk2.utilities.binding.AbstractBinder
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_fContainer
The flag specifying whether REST API is run inside the container (true) or standalone (false).
|
Constructor and Description |
---|
InjectionBinder(boolean fContainer)
Construct InjectionBinder instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
static <T> T |
inject(T resource, org.glassfish.hk2.api.ServiceLocator locator)
Inject its fields and methods of a given resource and return the resource.
|
addActiveDescriptor, addActiveDescriptor, addActiveDescriptor, addActiveFactoryDescriptor, addUnbindFilter, bind, bind, bind, bind, bind, bind, bind, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, commit, install
protected final boolean m_fContainer
public InjectionBinder(boolean fContainer)
fContainer
- the flag specifying whether REST API is run inside the container (true) or standalone (false).protected void configure()
configure
in class org.glassfish.hk2.utilities.binding.AbstractBinder
public static <T> T inject(T resource, org.glassfish.hk2.api.ServiceLocator locator)
resource
- the resourcelocator
- the service locator to use