de.devsurf.injection.guice.reflections.example.startupmodule
Class ExampleStartupModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by de.devsurf.injection.guice.scanner.StartupModule
          extended by de.devsurf.injection.guice.reflections.example.startupmodule.ExampleStartupModule
All Implemented Interfaces:
com.google.inject.Module

public class ExampleStartupModule
extends StartupModule

The ExampleStartupModule overwrites the bindAnnotationListeners-Method, because our Example has several Classes annotated with AutoBind and GuiceModule. Due the fact, that our GuiceModule binds the Example-Interface to the ExampleImpl-Class and the AutoBind.AutoBindListener too, we would get a CreationException.

Author:
Daniel Manzke

Nested Class Summary
 
Nested classes/interfaces inherited from class de.devsurf.injection.guice.scanner.StartupModule
StartupModule.DefaultStartupModule
 
Constructor Summary
ExampleStartupModule(Class<? extends ClasspathScanner> scanner, String... packages)
           
 
Method Summary
protected  void bindAnnotationListeners()
           
 
Methods inherited from class de.devsurf.injection.guice.scanner.StartupModule
configure, create
 
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

ExampleStartupModule

public ExampleStartupModule(Class<? extends ClasspathScanner> scanner,
                            String... packages)
Method Detail

bindAnnotationListeners

protected void bindAnnotationListeners()
Specified by:
bindAnnotationListeners in class StartupModule


Copyright © 2010. All Rights Reserved.