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
Base interface for bundle items: guicey and dropwizard bundles.
- Since:
- 28.07.2019
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIn 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, 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
-
Method Details
-
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
-