Class InjectionBinder
java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
com.tangosol.coherence.rest.server.InjectionBinder
- All Implemented Interfaces:
org.glassfish.jersey.internal.inject.Binder
public class InjectionBinder
extends org.glassfish.jersey.internal.inject.AbstractBinder
A binder for REST API dependencies.
- Since:
- Coherence 12.2.1
- Author:
- as 2015.07.29
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
The flag specifying whether REST API is run inside the container (true) or standalone (false). -
Constructor Summary
-
Method Summary
Methods inherited from class org.glassfish.jersey.internal.inject.AbstractBinder
bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install
-
Field Details
-
m_fContainer
protected final boolean m_fContainerThe flag specifying whether REST API is run inside the container (true) or standalone (false).
-
-
Constructor Details
-
InjectionBinder
public InjectionBinder(boolean fContainer) Construct InjectionBinder instance.- Parameters:
fContainer
- the flag specifying whether REST API is run inside the container (true) or standalone (false).
-
-
Method Details
-
configure
protected void configure()- Specified by:
configure
in classorg.glassfish.jersey.internal.inject.AbstractBinder
-
inject
public 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.- Type Parameters:
T
- the resource type- Parameters:
resource
- the resourcelocator
- the service locator to use- Returns:
- the resource with its fields and methods injected.
-