|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.inject.api.AbstractLoggerInjectingModule<Log>
public abstract class AbstractLoggerInjectingModule<Log>
Abstract implementation of a module, which injects loggers into fields. The field must be annotated like this:
| Constructor Summary | |
|---|---|
AbstractLoggerInjectingModule()
|
|
| Method Summary | |
|---|---|
void |
configure(IBinder pBinder)
Called by the IInjectorBuilder to create bindings, by using
the given binder. |
protected Class<? extends Annotation> |
getAnnotationClass()
Returns the annotation class, which denotes suitable target fields. |
protected String |
getId(Annotation pAnnotation,
Class<?> pClass)
Called to calculate the Id, which is used to invoke newLogger(String). |
protected abstract Log |
newLogger(String pId)
Creates a new logger with the given Id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLoggerInjectingModule()
| Method Detail |
|---|
public void configure(IBinder pBinder)
IModuleIInjectorBuilder to create bindings, by using
the given binder.
configure in interface IModuleprotected abstract Log newLogger(String pId)
protected Class<? extends Annotation> getAnnotationClass()
InjLogger is used.
protected String getId(Annotation pAnnotation,
Class<?> pClass)
newLogger(String).
By default, InjLogger#name() is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||