Interface GuiceyBundleItemInfo
-
- All Superinterfaces:
BundleItemInfo<GuiceyBundle>,DisableSupport,InstanceItemInfo<GuiceyBundle>,ItemInfo
- All Known Implementing Classes:
GuiceyBundleItemInfoImpl
public interface GuiceyBundleItemInfo extends BundleItemInfo<GuiceyBundle>
Guicey bundle configuration information. For bundles, resolved with bundles lookup mechanism, context would beGuiceyBundleLookup.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 (
ApplicationandGuiceyBundleLookup) (andisFromLookup()will be true) or as separate instances.- Since:
- 09.07.2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetInitOrder()Useful for sorting bundles in initialization order (to correctly order transitive bundles).booleanisFromLookup()-
Methods inherited from interface ru.vyarus.dropwizard.guice.module.context.info.BundleItemInfo
isDropwizard, isTransitive
-
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, isAllDataCollected, isRegistered, isRegisteredDirectly
-
-
-
-
Method Detail
-
isFromLookup
boolean isFromLookup()
- Returns:
- true if bundle resolved by lookup mechanism, false otherwise
- See Also:
GuiceyBundleLookup
-
getInitOrder
int getInitOrder()
Useful for sorting bundles in initialization order (to correctly order transitive bundles).- Returns:
- initialization order (starting from 1)
-
-