org.apache.geronimo.kernel.config
Class ConfigurationModuleType

java.lang.Object
  extended by org.apache.geronimo.kernel.config.ConfigurationModuleType
All Implemented Interfaces:
Serializable

public class ConfigurationModuleType
extends Object
implements Serializable

Configuration types.

See Also:
Serialized Form

Field Summary
static ConfigurationModuleType CAR
           
static ConfigurationModuleType EAR
           
static ConfigurationModuleType EJB
           
static ConfigurationModuleType RAR
           
static ConfigurationModuleType SERVICE
           
static ConfigurationModuleType SPR
           
static ConfigurationModuleType WAR
           
 
Constructor Summary
ConfigurationModuleType(String name, int value)
          This constructor is intentionally public: this class is not a type-safe enumeration.
 
Method Summary
static ConfigurationModuleType getByName(String name)
           
static ConfigurationModuleType getFromValue(int index)
           
static ConfigurationModuleType getFromValue(Integer index)
           
 String getName()
           
 int getValue()
          Gets the identifier of this type.
protected  Object readResolve()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConfigurationModuleType

public ConfigurationModuleType(String name,
                               int value)
This constructor is intentionally public: this class is not a type-safe enumeration.

Method Detail

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-2008 The Apache Geronimo development community. All Rights Reserved.