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 final boolean
    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

    Modifier and Type
    Method
    Description
    protected void
     
    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.

    Methods inherited from class org.glassfish.jersey.internal.inject.AbstractBinder

    bind, bind, bind, bindAsContract, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, createManagedInstanceProvider, getBindings, install

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 class org.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 resource
      locator - the service locator to use
      Returns:
      the resource with its fields and methods injected.