Interface DisableSupport
-
- All Known Subinterfaces:
BundleItemInfo<T>,DropwizardBundleItemInfo,ExtensionItemInfo,GuiceyBundleItemInfo,InstallerItemInfo,ModuleItemInfo
- All Known Implementing Classes:
BundleItemInfoImpl,DropwizardBundleItemInfoImpl,ExtensionItemInfoImpl,GuiceyBundleItemInfoImpl,InstallerItemInfoImpl,ModuleItemInfoImpl
public interface DisableSupportDisable sign indicates that item could be disabled.- Since:
- 06.07.2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<ItemId>getDisabledBy()Item may be disabled either from root application class or fromGuiceyBundle.booleanisEnabled()Item is enabled if no one disable it (getDisabledBy()is empty).
-
-
-
Method Detail
-
getDisabledBy
java.util.Set<ItemId> getDisabledBy()
Item may be disabled either from root application class or fromGuiceyBundle. For application,Applicationclass 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
-
-