org.apache.geronimo.kernel.config
Class ConfigurationModuleType
java.lang.Object
org.apache.geronimo.kernel.config.ConfigurationModuleType
- All Implemented Interfaces:
- Serializable
public class ConfigurationModuleType
- extends Object
- implements Serializable
Configuration types.
- See Also:
- Serialized Form
Constructor Summary |
ConfigurationModuleType(String name,
int value)
This constructor is intentionally public: this class is not a type-safe
enumeration. |
EAR
public static final ConfigurationModuleType EAR
EJB
public static final ConfigurationModuleType EJB
CAR
public static final ConfigurationModuleType CAR
RAR
public static final ConfigurationModuleType RAR
WAR
public static final ConfigurationModuleType WAR
SERVICE
public static final ConfigurationModuleType SERVICE
SPR
public static final ConfigurationModuleType SPR
ConfigurationModuleType
public ConfigurationModuleType(String name,
int value)
- This constructor is intentionally public: this class is not a type-safe
enumeration.
getFromValue
public static ConfigurationModuleType getFromValue(int index)
getFromValue
public static ConfigurationModuleType getFromValue(Integer index)
getByName
public static ConfigurationModuleType getByName(String name)
getName
public String getName()
getValue
public int getValue()
- Gets the identifier of this type. For a configuration associated to
a J2EE ModuleType, this value MUST be equal to ModuleType.getValue().
- Returns:
- the index
toString
public String toString()
- Overrides:
toString
in class Object
readResolve
protected Object readResolve()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.