Class 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.
    • Field Detail

      • m_fContainer

        protected final boolean m_fContainer
        The flag specifying whether REST API is run inside the container (true) or standalone (false).
    • Constructor Detail

      • 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 Detail

      • 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.