Enum EJBComponentType
- java.lang.Object
-
- java.lang.Enum<EJBComponentType>
-
- org.jboss.as.ejb3.subsystem.deployment.EJBComponentType
-
- All Implemented Interfaces:
Serializable,Comparable<EJBComponentType>
public enum EJBComponentType extends Enum<EJBComponentType>
Enumeration of types of manageable Jakarta Enterprise Beans components.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGE_DRIVENSINGLETONSTATEFULSTATELESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends EJBComponent>getComponentClass()Class<? extends EJBComponentDescription>getComponentDescriptionClass()static EJBComponentTypegetComponentType(ComponentConfiguration componentConfiguration)Pool<?>getPool(EJBComponent component)StringgetResourceType()AbstractEJBComponentRuntimeHandler<?>getRuntimeHandler()booleanhasPool()booleanhasTimer()protected PooledComponent<?>pooledComponent(EJBComponent component)static EJBComponentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EJBComponentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE_DRIVEN
public static final EJBComponentType MESSAGE_DRIVEN
-
SINGLETON
public static final EJBComponentType SINGLETON
-
STATELESS
public static final EJBComponentType STATELESS
-
STATEFUL
public static final EJBComponentType STATEFUL
-
-
Method Detail
-
values
public static EJBComponentType[] 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 (EJBComponentType c : EJBComponentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EJBComponentType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getResourceType
public String getResourceType()
-
getComponentClass
public Class<? extends EJBComponent> getComponentClass()
-
getComponentDescriptionClass
public Class<? extends EJBComponentDescription> getComponentDescriptionClass()
-
hasPool
public boolean hasPool()
-
hasTimer
public boolean hasTimer()
-
getPool
public Pool<?> getPool(EJBComponent component)
-
getRuntimeHandler
public AbstractEJBComponentRuntimeHandler<?> getRuntimeHandler()
-
getComponentType
public static EJBComponentType getComponentType(ComponentConfiguration componentConfiguration)
-
pooledComponent
protected PooledComponent<?> pooledComponent(EJBComponent component)
-
-