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 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
.boolean
isEnabled()
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,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
-
-