Class DropwizardBundleItemInfoImpl

All Implemented Interfaces:
BundleItemInfo<io.dropwizard.core.ConfiguredBundle>, DropwizardBundleItemInfo, InstanceItemInfo<io.dropwizard.core.ConfiguredBundle>, ItemInfo, DisableSupport

public class DropwizardBundleItemInfoImpl extends BundleItemInfoImpl<io.dropwizard.core.ConfiguredBundle> implements DropwizardBundleItemInfo
Dropwizard bundle item info implementation.
Since:
24.07.2019
  • Constructor Details

    • DropwizardBundleItemInfoImpl

      public DropwizardBundleItemInfoImpl(Class<? extends io.dropwizard.core.ConfiguredBundle> type)
      Create disable-only bundle info (only disable marker).
      Parameters:
      type - bundle type
    • DropwizardBundleItemInfoImpl

      public DropwizardBundleItemInfoImpl(io.dropwizard.core.ConfiguredBundle bundle)
      Create bundle item info.
      Parameters:
      bundle - bundle instance
  • Method Details

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

      public boolean isDropwizard()
      Specified by:
      isDropwizard in interface BundleItemInfo<io.dropwizard.core.ConfiguredBundle>
      Returns:
      true for dropwizard bundle, false for guicey bundle