Class InstallerItemInfoImpl
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.ClassItemInfoImpl
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.InstallerItemInfoImpl
-
- All Implemented Interfaces:
ClassItemInfo
,InstallerItemInfo
,ItemInfo
,DisableSupport
,ScanSupport
public class InstallerItemInfoImpl extends ClassItemInfoImpl implements InstallerItemInfo
Installer item info implementation.- Since:
- 06.07.2016
-
-
Constructor Summary
Constructors Constructor Description InstallerItemInfoImpl(java.lang.Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete 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 (DisableSupport.getDisabledBy()
is empty).boolean
isFromScan()
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
countRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectly, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.ItemInfo
getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectly
-
-
-
-
Method Detail
-
getDisabledBy
public java.util.Set<ItemId> getDisabledBy()
Description copied from interface:DisableSupport
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.- Specified by:
getDisabledBy
in interfaceDisableSupport
- Returns:
- contexts where item was disabled or empty collection
-
isEnabled
public boolean isEnabled()
Description copied from interface:DisableSupport
Item is enabled if no one disable it (DisableSupport.getDisabledBy()
is empty).- Specified by:
isEnabled
in interfaceDisableSupport
- Returns:
- true if item enabled, false otherwise
-
isFromScan
public boolean isFromScan()
- Specified by:
isFromScan
in interfaceScanSupport
- Returns:
- true if item found by classpath scan, false otherwise
-
-