Enum Class ConfigItem
- All Implemented Interfaces:
Serializable,Comparable<ConfigItem>,Constable
Guicey configurable item types.
- Since:
- 06.07.2016
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGuiceyBundleorConfiguredBundleNote that guicey bundle installs other items and all of them are tracked too.Dropwizard command.ConfiguredBundle.Extension (everything that is installed by installers (like resource, health check etc).Installer.Guice module. -
Method Summary
Modifier and TypeMethodDescriptionboolean<T extends ItemInfoImpl>
TnewContainer(Object item) Creates info container for configuration item.static ConfigItemReturns the enum constant of this class with the specified name.static ConfigItem[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Installer
Installer. -
Extension
Extension (everything that is installed by installers (like resource, health check etc). -
DropwizardBundle
ConfiguredBundle. Only bundles registered through guicey api are tracked. -
Bundle
GuiceyBundleorConfiguredBundleNote that guicey bundle installs other items and all of them are tracked too. -
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
Dropwizard command. Commands could be resolved with classpath scan and installed (by default disabled).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isInstanceConfig
public boolean isInstanceConfig()- Returns:
- true if instances used for configuration, false when configured with class
-
newContainer
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
-