public class ModuleItemInfoImpl extends InstanceItemInfoImpl implements ModuleItemInfo
| Constructor and Description |
|---|
ModuleItemInfoImpl(java.lang.Class<? extends com.google.inject.Module> type) |
ModuleItemInfoImpl(com.google.inject.Module module) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ItemId> |
getDisabledBy()
Item may be disabled either from root application class or from
GuiceyBundle. |
boolean |
isEnabled()
Item is enabled if no one disable it (
DisableSupport.getDisabledBy() is empty). |
boolean |
isOverriding() |
static void |
overrideScope(java.lang.Runnable action)
Use to register overriding modules.
|
getDuplicates, getInstance, getInstanceCount, setInstanceCount, toStringcountRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDuplicates, getInstance, getInstanceCountgetId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isRegistered, isRegisteredDirectlypublic ModuleItemInfoImpl(java.lang.Class<? extends com.google.inject.Module> type)
public ModuleItemInfoImpl(com.google.inject.Module module)
public java.util.Set<ItemId> getDisabledBy()
DisableSupportGuiceyBundle. For application,
Application class stored as context and for guicey bundle actual bundle instance id
is stored.getDisabledBy in interface DisableSupportpublic boolean isEnabled()
DisableSupportDisableSupport.getDisabledBy() is empty).isEnabled in interface DisableSupportpublic boolean isOverriding()
isOverriding in interface ModuleItemInfopublic static void overrideScope(java.lang.Runnable action)
action - registration action