Interface BundleItemInfo<T>
-
- Type Parameters:
T- instance type
- All Superinterfaces:
DisableSupport,InstanceItemInfo<T>,ItemInfo
- All Known Subinterfaces:
DropwizardBundleItemInfo,GuiceyBundleItemInfo
- All Known Implementing Classes:
BundleItemInfoImpl,DropwizardBundleItemInfoImpl,GuiceyBundleItemInfoImpl
public interface BundleItemInfo<T> extends InstanceItemInfo<T>, DisableSupport
Base interface for bundle items: guicey and dropwizard bundles.- Since:
- 28.07.2019
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisDropwizard()booleanisTransitive()In case when bundle is registered multiple times, bundle will be transitive if all registrations were transitive.-
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
boolean isTransitive()
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).- Returns:
- true when bundle was registered only by some other bundle (and never directly)
-
isDropwizard
boolean isDropwizard()
- Returns:
- true for dropwizard bundle, false for guicey bundle
-
-