Class OxalisModule

    • Constructor Summary

      Constructors 
      Constructor Description
      OxalisModule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void bindSettings​(Class<?> cls)
      Binds a configuration enum for use.
      protected <T> void bindTyped​(Class<T> cls, Class<? extends T> impl)
      Binds an implementation to an interface using the Type annotation as replacement for Named.
      protected <T> void bindTyped​(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
    • Constructor Detail

      • OxalisModule

        public OxalisModule()
    • Method Detail

      • bindTyped

        protected <T> void bindTyped​(Class<T> cls,
                                     Class<? extends T> impl)
        Binds an implementation to an interface using the Type annotation as replacement for Named.
        Parameters:
        cls - Interface used for binding.
        impl - Implementation with Type annotation.
      • 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.