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 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 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)