org.codesmell.guice.autobind
Class AbstractAutoBindingModule
java.lang.Object
com.google.inject.AbstractModule
org.codesmell.guice.autobind.AbstractAutoBindingModule
- All Implemented Interfaces:
- com.google.inject.Module
- Direct Known Subclasses:
- SimpleAutoBindingModule
public abstract class AbstractAutoBindingModule
- extends com.google.inject.AbstractModule
Provides functionality to "AutoBind" Implementations to Interfaces or themselves.
- Author:
- Uwe Schäfer, (schaefer@codesmell.org)
|
Constructor Summary |
AbstractAutoBindingModule(java.lang.String packageName,
com.google.inject.matcher.Matcher<java.lang.Class> matcher)
|
|
Method Summary |
protected void |
configure()
|
protected abstract void |
doBind(java.lang.Class matchingClass)
This method is called, for classes that have an AutoBind annotation without a value. |
protected abstract void |
doBind(java.lang.Class interfaceToBindTo,
java.lang.Class matchingClass)
called when a class annotated with autoBind is found, that has a value of an interface implemented by this class |
| Methods inherited from class com.google.inject.AbstractModule |
addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindScope, configure, install, requestStaticInjection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAutoBindingModule
public AbstractAutoBindingModule(java.lang.String packageName,
com.google.inject.matcher.Matcher<java.lang.Class> matcher)
configure
protected final void configure()
- Specified by:
configure in class com.google.inject.AbstractModule
doBind
protected abstract void doBind(java.lang.Class interfaceToBindTo,
java.lang.Class matchingClass)
- called when a class annotated with autoBind is found, that has a value of an interface implemented by this class
- Parameters:
bind -
doBind
protected abstract void doBind(java.lang.Class matchingClass)
- This method is called, for classes that have an AutoBind annotation without a value.
- Parameters:
matchingClass -
Copyright © 2007. All Rights Reserved.