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
-
Field Summary
Fields inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
complete -
Constructor Summary
ConstructorsConstructorDescriptionDropwizardBundleItemInfoImpl(io.dropwizard.core.ConfiguredBundle bundle) Create bundle item info.DropwizardBundleItemInfoImpl(Class<? extends io.dropwizard.core.ConfiguredBundle> type) Create disable-only bundle info (only disable marker). -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIn 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, isEnabledMethods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.InstanceItemInfoImpl
getDuplicates, getInstance, getInstanceCount, setInstanceCount, toStringMethods inherited from class ru.vyarus.dropwizard.guice.module.context.info.impl.ItemInfoImpl
countRegistrationAttempt, getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isAllDataCollected, isRegistered, isRegisteredDirectlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.sign.DisableSupport
getDisabledBy, isEnabledMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.InstanceItemInfo
getDuplicates, getInstance, getInstanceCountMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.ItemInfo
getId, getIgnoresByScope, getIgnoresByScope, getItemType, getRegisteredBy, getRegistrationAttempts, getRegistrationScope, getRegistrationScopeType, getType, isAllDataCollected, isRegistered, isRegisteredDirectly
-
Constructor Details
-
DropwizardBundleItemInfoImpl
Create disable-only bundle info (only disable marker).- Parameters:
type- bundle type
-
DropwizardBundleItemInfoImpl
public DropwizardBundleItemInfoImpl(io.dropwizard.core.ConfiguredBundle bundle) Create bundle item info.- Parameters:
bundle- bundle instance
-
-
Method Details
-
isTransitive
public boolean isTransitive()Description copied from interface:BundleItemInfoIn 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:
isTransitivein 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:
isDropwizardin interfaceBundleItemInfo<io.dropwizard.core.ConfiguredBundle>- Returns:
- true for dropwizard bundle, false for guicey bundle
-