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:
DynamicConfiguration, Binder

public class ServiceFinderBinder<T>
extends 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)

Constructor Summary
ServiceFinderBinder(Class<T> contract)
          Create a new service finder injection binder.
 
Method Summary
 void configure()
           
 
Methods inherited from class org.glassfish.hk2.utilities.binding.AbstractBinder
addActiveDescriptor, addActiveDescriptor, addUnbindFilter, 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)
Create a new service finder injection binder.

Parameters:
contract - contract of the service providers bound by this binder.
Method Detail

configure

public void configure()
Specified by:
configure in class AbstractBinder


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.