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

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.AbstractModule
      extended by org.glassfish.jersey.internal.ServiceFinderModule<T>
Type Parameters:
T - contract type.
All Implemented Interfaces:
org.glassfish.hk2.BinderFactory, org.glassfish.hk2.Module

public class ServiceFinderModule<T>
extends AbstractModule

Simple ServiceFinder configuration module. Looks for all implementations of a given contract using ServiceFinder and registers found instances to HK2 service.

Author:
Pavel Bucek (pavel.bucek at oracle.com)

Constructor Summary
ServiceFinderModule(java.lang.Class<T> contract)
          Create a new service finder module.
 
Method Summary
 void configure()
          Implement to provide module binding definitions using the exposed binding methods.
 
Methods inherited from class org.glassfish.jersey.internal.inject.AbstractModule
bind, bind, bind, bind, bind, configure, inParent, install
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFinderModule

public ServiceFinderModule(java.lang.Class<T> contract)
Create a new service finder module.

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

configure

public void configure()
Description copied from class: AbstractModule
Implement to provide module binding definitions using the exposed binding methods.

Specified by:
configure in class AbstractModule


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