Class ServiceFinderBinder<T>

java.lang.Object
org.glassfish.jersey.internal.inject.AbstractBinder
org.glassfish.jersey.internal.ServiceFinderBinder<T>
Type Parameters:
T - contract type.
All Implemented Interfaces:
org.glassfish.jersey.internal.inject.Binder

public class ServiceFinderBinder<T> extends org.glassfish.jersey.internal.inject.AbstractBinder
Simple ServiceFinder injection binder. Looks for all implementations of a given contract using ServiceFinder and registers found instances to InjectionManager.
Author:
Pavel Bucek, Libor Kramolis
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServiceFinderBinder(Class<T> contract, Map<String,Object> applicationProperties, RuntimeType runtimeType)
    Create a new service finder injection binder.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Implement to provide binding definitions using the exposed binding methods.

    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
  • Constructor Details

    • ServiceFinderBinder

      public ServiceFinderBinder(Class<T> contract, Map<String,Object> applicationProperties, RuntimeType runtimeType)
      Create a new service finder injection binder.
      Parameters:
      contract - contract of the service providers bound by this binder.
      applicationProperties - map containing application properties. May be null.
      runtimeType - runtime (client or server) where the service finder binder is used.
  • Method Details

    • configure

      protected void configure()
      Description copied from class: org.glassfish.jersey.internal.inject.AbstractBinder
      Implement to provide binding definitions using the exposed binding methods.
      Specified by:
      configure in class org.glassfish.jersey.internal.inject.AbstractBinder