Interface DisableSupport

All Known Subinterfaces:
BundleItemInfo<T>, DropwizardBundleItemInfo, ExtensionItemInfo, GuiceyBundleItemInfo, InstallerItemInfo, ModuleItemInfo
All Known Implementing Classes:
BundleItemInfoImpl, DropwizardBundleItemInfoImpl, ExtensionItemInfoImpl, GuiceyBundleItemInfoImpl, InstallerItemInfoImpl, ModuleItemInfoImpl

public interface DisableSupport
Disable sign indicates that item could be disabled.
Since:
06.07.2016
  • Method Details

    • getDisabledBy

      Set<ItemId> getDisabledBy()
      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.
      Returns:
      contexts where item was disabled or empty collection
    • isEnabled

      boolean isEnabled()
      Item is enabled if no one disable it (getDisabledBy() is empty).
      Returns:
      true if item enabled, false otherwise