org.glassfish.jersey.internal.inject
Class ProviderInstanceBindingModule<T>

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.AbstractModule
      extended by org.glassfish.jersey.internal.inject.ProviderInstanceBindingModule<T>
Type Parameters:
T -
All Implemented Interfaces:
DynamicConfiguration, Binder, Module

public class ProviderInstanceBindingModule<T>
extends AbstractModule

Module used for registering provider instances of provider type T in HK2.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
ProviderInstanceBindingModule(java.lang.Iterable<? extends T> providers, java.lang.Class<T> providerType)
          Create a provider instance binding module for the supplied collection of provider instances.
 
Method Summary
protected  void configure()
          Implement to provide module binding definitions using the exposed binding methods.
 
Methods inherited from class org.glassfish.jersey.internal.inject.AbstractModule
addActiveDescriptor, addActiveDescriptor, addUnbindFilter, bind, bind, bind, commit, install
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderInstanceBindingModule

public ProviderInstanceBindingModule(java.lang.Iterable<? extends T> providers,
                                     java.lang.Class<T> providerType)
Create a provider instance binding module for the supplied collection of provider instances.

Parameters:
providers - list of provider instances.
providerType - registered provider contract type.
Method Detail

configure

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