Interface GuiceyBundleItemInfo
- All Superinterfaces:
BundleItemInfo<GuiceyBundle>,DisableSupport,InstanceItemInfo<GuiceyBundle>,ItemInfo
- All Known Implementing Classes:
GuiceyBundleItemInfoImpl
Guicey bundle configuration information.
For bundles, resolved with bundles lookup mechanism, context would be
GuiceyBundleLookup.
Note that the same bundle may be registered by different mechanism simultaneously.
For example: by lookup and manually in application class. Bundle will actually be registered either only once
(if correct equals method implemented) and it's info will contain 2 context classes
(Application and GuiceyBundleLookup)
(and isFromLookup() will be true) or as separate instances.
- Since:
- 09.07.2016
-
Method Summary
Modifier and TypeMethodDescriptionintUseful for sorting bundles in initialization order (to correctly order transitive bundles).booleanMethods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.BundleItemInfo
isDropwizard, isTransitiveMethods 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
-
isFromLookup
boolean isFromLookup()- Returns:
- true if bundle resolved by lookup mechanism, false otherwise
- See Also:
-
getInitOrder
int getInitOrder()Useful for sorting bundles in initialization order (to correctly order transitive bundles).- Returns:
- initialization order (starting from 1)
-