Class ModuleItemInfoImpl

    • Constructor Detail

      • ModuleItemInfoImpl

        public ModuleItemInfoImpl​(java.lang.Class<? extends com.google.inject.Module> type)
      • ModuleItemInfoImpl

        public ModuleItemInfoImpl​(com.google.inject.Module module)
    • Method Detail

      • getDisabledBy

        public java.util.Set<ItemId> getDisabledBy()
        Description copied from interface: DisableSupport
        Item may be disabled either from root application class or from GuiceyBundle. For application, Application class stored as context and for guicey bundle actual bundle instance id is stored.
        Specified by:
        getDisabledBy in interface DisableSupport
        Returns:
        contexts where item was disabled or empty collection
      • isOverriding

        public boolean isOverriding()
        Specified by:
        isOverriding in interface ModuleItemInfo
        Returns:
        true if overriding module (module overrides bindings of other modules), false if normal module
      • overrideScope

        public static void overrideScope​(java.lang.Runnable action)
        Use to register overriding modules. Such complex approach was used because overriding modules is the only item that require additional parameter during registration. This parameter may be used in disable predicate to differentiate overriding modules from normal modules.
        Parameters:
        action - registration action