Package network.oxalis.commons.guice
Class OxalisModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- network.oxalis.commons.guice.OxalisModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
ApacheHttpModule,CertificateModule,ConfigModule,ErrorModule,EvidenceModule,ExecutorModule,FileSystemModule,HeaderModule,IdentifierModule,LoggingModule,ModeModule,PersisterModule,PluginModule,StatisticsModule,TagModule,TimestampModule,TracingModule,TransformerModule,TransmissionModule
public abstract class OxalisModule extends com.google.inject.AbstractModuleSpecialized Guice module class with some extra methods heavily used by Oxalis.- Since:
- 4.0.1
- Author:
- erlend
-
-
Constructor Summary
Constructors Constructor Description OxalisModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindSettings(Class<?> cls)Binds a configuration enum for use.protected <T> voidbindTyped(Class<T> cls, Class<? extends T> impl)Binds an implementation to an interface using theTypeannotation as replacement forNamed.protected <T> voidbindTyped(Class<T> cls, Class<? extends T> impl, String... names)Binds an implementation to an interface with names.-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
bindTyped
protected <T> void bindTyped(Class<T> cls, Class<? extends T> impl)
Binds an implementation to an interface using theTypeannotation as replacement forNamed.- Parameters:
cls- Interface used for binding.impl- Implementation withTypeannotation.
-
bindTyped
protected <T> void bindTyped(Class<T> cls, Class<? extends T> impl, String... names)
Binds an implementation to an interface with names.- Parameters:
cls- Interface used for binding.impl- Implementation of interface..names- Names used to identify
-
bindSettings
protected void bindSettings(Class<?> cls)
Binds a configuration enum for use.- Parameters:
cls- Enum expressing configurations.
-
-