Enum ConfigItem
- java.lang.Object
-
- java.lang.Enum<ConfigItem>
-
- ru.vyarus.dropwizard.guice.module.context.ConfigItem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigItem>
public enum ConfigItem extends java.lang.Enum<ConfigItem>
Guicey configurable item types.- Since:
- 06.07.2016
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Bundle
GuiceyBundle
orConfiguredBundle
Note that guicey bundle installs other items and all of them are tracked too.Command
Dropwizard command.DropwizardBundle
ConfiguredBundle
.Extension
Extension (everything that is installed by installers (like resource, health check etc).Installer
Installer.Module
Guice module.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInstanceConfig()
<T extends ItemInfoImpl>
TnewContainer(java.lang.Object item)
Creates info container for configuration item.static ConfigItem
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigItem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
orConfiguredBundle
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 Detail
-
values
public static ConfigItem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigItem c : ConfigItem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigItem valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.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(java.lang.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
-
-