info.magnolia.objectfactory.guice
Class GuiceParentBindingsModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by info.magnolia.objectfactory.guice.GuiceParentBindingsModule
All Implemented Interfaces:
com.google.inject.Module

public class GuiceParentBindingsModule
extends com.google.inject.AbstractModule

Bridges a Guice Injector to another Injector by adding bindings for all explicit bindings in the injector being used as parent.

Version:
$Id$

Constructor Summary
GuiceParentBindingsModule(com.google.inject.Injector parentInjector)
           
 
Method Summary
protected  void configure()
           
 void exclude(Class<?>... classes)
           
 void exclude(com.google.inject.Key<?>... keys)
           
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceParentBindingsModule

public GuiceParentBindingsModule(com.google.inject.Injector parentInjector)
Method Detail

exclude

public void exclude(com.google.inject.Key<?>... keys)

exclude

public void exclude(Class<?>... classes)

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.