public class ExtAnnotationsModule
extends com.google.inject.AbstractModule
| Constructor and Description |
|---|
ExtAnnotationsModule()
Default module constructor to check annotations on all beans.
|
ExtAnnotationsModule(com.google.inject.matcher.Matcher<java.lang.Object> typeMatcher)
Constructs annotation module with custom bean matcher for annotations processing.
|
ExtAnnotationsModule(java.lang.String pkg)
Constructs annotation module with annotation scan limited to provided package.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
protected DestroyableManager |
configureManager(DestroyableManager manager)
Registers destroyable manager in injector and adds shutdown hook to process destroy on jvm shutdown.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic ExtAnnotationsModule()
public ExtAnnotationsModule(java.lang.String pkg)
pkg - package to limit beans, where annotations processedpublic ExtAnnotationsModule(com.google.inject.matcher.Matcher<java.lang.Object> typeMatcher)
typeMatcher - matcher to select beans for annotations processingprotected void configure()
configure in class com.google.inject.AbstractModuleprotected DestroyableManager configureManager(DestroyableManager manager)
manager - destroyable manager instance