Enum Class ConfigItem

java.lang.Object
java.lang.Enum<ConfigItem>
ru.vyarus.dropwizard.guice.module.context.ConfigItem
All Implemented Interfaces:
Serializable, Comparable<ConfigItem>, Constable

public enum ConfigItem extends Enum<ConfigItem>
Guicey configurable item types.
Since:
06.07.2016
  • Enum Constant Details

    • Installer

      public static final ConfigItem Installer
      Installer.
    • Extension

      public static final ConfigItem Extension
      Extension (everything that is installed by installers (like resource, health check etc).
    • DropwizardBundle

      public static final ConfigItem DropwizardBundle
      ConfiguredBundle. Only bundles registered through guicey api are tracked.
    • Bundle

      public static final ConfigItem Bundle
      GuiceyBundle or ConfiguredBundle Note that guicey bundle installs other items and all of them are tracked too.
    • Module

      public static final ConfigItem Module
      Guice module. Note that only direct modules are tracked (if module registered by other guice module in it's configure method it would not be tracked - it's pure guice staff).
    • Command

      public static final ConfigItem Command
      Dropwizard command. Commands could be resolved with classpath scan and installed (by default disabled).
  • Method Details

    • values

      public static ConfigItem[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConfigItem valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isInstanceConfig

      public boolean isInstanceConfig()
      Returns:
      true if instances used for configuration, false when configured with class
    • newContainer

      public <T extends ItemInfoImpl> T newContainer(Object item)
      Creates info container for configuration item.
      Type Parameters:
      T - type of required info container
      Parameters:
      item - item instance or item class (for class based configurations)
      Returns:
      info container instance