Class GuiceyBundleItemInfoImpl

All Implemented Interfaces:
BundleItemInfo<GuiceyBundle>, GuiceyBundleItemInfo, InstanceItemInfo<GuiceyBundle>, ItemInfo, DisableSupport

public class GuiceyBundleItemInfoImpl extends BundleItemInfoImpl<GuiceyBundle> implements GuiceyBundleItemInfo
Bundle item info implementation.
Since:
06.07.2016
  • Constructor Details

    • GuiceyBundleItemInfoImpl

      public GuiceyBundleItemInfoImpl(Class<? extends GuiceyBundle> type)
      Create disable-only bundle item (only disabled).
      Parameters:
      type - bundle type
    • GuiceyBundleItemInfoImpl

      public GuiceyBundleItemInfoImpl(GuiceyBundle bundle)
      Create bundle info.
      Parameters:
      bundle - guicey bundle
  • Method Details

    • isFromLookup

      public boolean isFromLookup()
      Specified by:
      isFromLookup in interface GuiceyBundleItemInfo
      Returns:
      true if bundle resolved by lookup mechanism, false otherwise
      See Also:
    • isTransitive

      public boolean isTransitive()
      Description copied from interface: BundleItemInfo
      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).
      Specified by:
      isTransitive in interface BundleItemInfo<GuiceyBundle>
      Returns:
      true when bundle was registered only by some other bundle (and never directly)
    • isDropwizard

      public boolean isDropwizard()
      Specified by:
      isDropwizard in interface BundleItemInfo<GuiceyBundle>
      Returns:
      true for dropwizard bundle, false for guicey bundle
    • getInitOrder

      public int getInitOrder()
      Description copied from interface: GuiceyBundleItemInfo
      Useful for sorting bundles in initialization order (to correctly order transitive bundles).
      Specified by:
      getInitOrder in interface GuiceyBundleItemInfo
      Returns:
      initialization order (starting from 1)
    • setInitOrder

      public void setInitOrder(int initOrder)
      Parameters:
      initOrder - initialization order