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.AbstractBinderA binder for REST API dependencies.- Since:
- Coherence 12.2.1
- Author:
- as 2015.07.29
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_fContainerThe 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 voidconfigure()static <T> Tinject(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:
configurein 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.
-
-