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
Fields Modifier and Type Field Description protected boolean
m_fContainer
The flag specifying whether REST API is run inside the container (true) or standalone (false).
-
Constructor Summary
Constructors Constructor Description InjectionBinder(boolean fContainer)
Construct InjectionBinder instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
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.
-
-