Class DropwizardBundleItemInfoImpl
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl<T>
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.BundleItemInfoImpl<io.dropwizard.core.ConfiguredBundle>
-
- ru.vyarus.dropwizard.guice.module.context.info.impl.DropwizardBundleItemInfoImpl
-
- All Implemented Interfaces:
BundleItemInfo<io.dropwizard.core.ConfiguredBundle>
,DropwizardBundleItemInfo
,InstanceItemInfo<io.dropwizard.core.ConfiguredBundle>
,ItemInfo
,DisableSupport
public class DropwizardBundleItemInfoImpl extends BundleItemInfoImpl<io.dropwizard.core.ConfiguredBundle> implements DropwizardBundleItemInfo
Dropwizard bundle item info implementation.- Since:
- 24.07.2019
-
-
Constructor Summary
Constructors Constructor Description DropwizardBundleItemInfoImpl(io.dropwizard.core.ConfiguredBundle bundle)
DropwizardBundleItemInfoImpl(java.lang.Class<? extends io.dropwizard.core.ConfiguredBundle> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDropwizard()
boolean
isTransitive()
In case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive.-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.BundleItemInfoImpl
getDisabledBy, isEnabled
-
Methods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl
getDuplicates, getInstance, getInstanceCount, setInstanceCount, toString
-
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
-
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.sign.DisableSupport
getDisabledBy, isEnabled
-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.InstanceItemInfo
getDuplicates, getInstance, getInstanceCount
-
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
-
isTransitive
public boolean isTransitive()
Description copied from interface:BundleItemInfo
In case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive. Reminder: bundle is registered by instance, but same instance may be registered multiple times. Also, deduplication mechanism could consider different instances as the same bundle (equal objects, by default).- Specified by:
isTransitive
in interfaceBundleItemInfo<io.dropwizard.core.ConfiguredBundle>
- Returns:
- true when bundle was registered only by some other bundle (and never directly)
-
isDropwizard
public boolean isDropwizard()
- Specified by:
isDropwizard
in interfaceBundleItemInfo<io.dropwizard.core.ConfiguredBundle>
- Returns:
- true for dropwizard bundle, false for guicey bundle
-
-