Interface BundleItemInfo<T>

Type Parameters:
T - instance type
All Superinterfaces:
DisableSupport, InstanceItemInfo<T>, ItemInfo
All Known Subinterfaces:
DropwizardBundleItemInfo, GuiceyBundleItemInfo
All Known Implementing Classes:
BundleItemInfoImpl, DropwizardBundleItemInfoImpl, GuiceyBundleItemInfoImpl

public interface BundleItemInfo<T> extends InstanceItemInfo<T>, DisableSupport
Base interface for bundle items: guicey and dropwizard bundles.
Since:
28.07.2019
  • Method Details

    • isTransitive

      boolean isTransitive()
      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).
      Returns:
      true when bundle was registered only by some other bundle (and never directly)
    • isDropwizard

      boolean isDropwizard()
      Returns:
      true for dropwizard bundle, false for guicey bundle