org.glassfish.jersey.internal
Class ServiceFinderBinder<T>

java.lang.Object
  extended by org.glassfish.hk2.utilities.binding.AbstractBinder
      extended by org.glassfish.jersey.internal.ServiceFinderBinder<T>
Type Parameters:
T - contract type.
All Implemented Interfaces:
org.glassfish.hk2.api.DynamicConfiguration, org.glassfish.hk2.utilities.Binder

public class ServiceFinderBinder<T>
extends org.glassfish.hk2.utilities.binding.AbstractBinder

Simple ServiceFinder injection binder. Looks for all implementations of a given contract using ServiceFinder and registers found instances to ServiceLocator.

Author:
Pavel Bucek (pavel.bucek at oracle.com), Libor Kramolis (libor.kramolis at oracle.com)

Constructor Summary
ServiceFinderBinder(Class<T> contract, Map<String,Object> applicationProperties, javax.ws.rs.RuntimeType runtimeType)
          Create a new service finder injection binder.
 
Method Summary
protected  void configure()
           
 
Methods inherited from class org.glassfish.hk2.utilities.binding.AbstractBinder
addActiveDescriptor, addActiveDescriptor, addActiveDescriptor, addUnbindFilter, bind, bind, bind, bind, bind, bind, bind, bindAsContract, bindAsContract, bindFactory, bindFactory, bindFactory, commit, install
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFinderBinder

public ServiceFinderBinder(Class<T> contract,
                           Map<String,Object> applicationProperties,
                           javax.ws.rs.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 Detail

configure

protected void configure()
Specified by:
configure in class org.glassfish.hk2.utilities.binding.AbstractBinder


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.