Class GuiceyBundleItemInfoImpl

    • Constructor Detail

      • GuiceyBundleItemInfoImpl

        public GuiceyBundleItemInfoImpl​(java.lang.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 Detail

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