FileDocCategorySizeDatePackage
SessionEnterpriseBean.javaAPI DocJBoss 4.2.14917Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3.metamodel

SessionEnterpriseBean

public class SessionEnterpriseBean extends EnterpriseBean
Represents a Session EJB element of the ejb-jar.xml deployment descriptor for the 1.4 schema
author
William DeCoste
version
$Revision: 60233 $

Fields Summary
private static final Logger
log
public static final String
STATELESS
public static final String
STATEFUL
private String
sessionType
private Method
aroundInvoke
private Method
postConstruct
private Method
postActivate
private Method
preDestroy
private Method
prePassivate
private List
removeMethods
private List
initMethods
private String
clustered
private ClusterConfig
clusterConfig
private CacheConfig
cacheConfig
private String
concurrent
Constructors Summary
Methods Summary
public voidaddInitMethod(InitMethod method)

      initMethods.add(method);
   
public voidaddRemoveMethod(RemoveMethod method)

      removeMethods.add(method);
   
public MethodgetAroundInvoke()

      return aroundInvoke;
   
public CacheConfiggetCacheConfig()

   
     
   
      return cacheConfig;
   
public ClusterConfiggetClusterConfig()

      return clusterConfig;
   
public java.lang.StringgetClustered()

      return clustered;
   
public java.lang.StringgetConcurrent()

      return concurrent;
   
public java.util.ListgetInitMethods()

      return initMethods;
   
public MethodgetPostActivate()

      if (sessionType.equals(STATELESS)) return null;
      return postActivate;
   
public MethodgetPostConstruct()

      return postConstruct;
   
public MethodgetPreDestroy()

      return preDestroy;
   
public MethodgetPrePassivate()

      if (sessionType.equals(STATELESS)) return null;
      return prePassivate;
   
public java.util.ListgetRemoveMethods()

      return removeMethods;
   
public java.lang.StringgetSessionType()

      return sessionType;
   
public booleanisStateful()

      return sessionType.equals(STATEFUL);
   
public booleanisStateless()

      return sessionType.equals(STATELESS);
   
public voidsetAroundInvoke(Method aroundInvoke)

      this.aroundInvoke = aroundInvoke;
   
public voidsetCacheConfig(CacheConfig cacheConfig)

      this.cacheConfig = cacheConfig;
   
public voidsetClusterConfig(ClusterConfig clusterConfig)

      this.clusterConfig = clusterConfig;
   
public voidsetClustered(java.lang.String clustered)

      this.clustered = clustered;
   
public voidsetConcurrent(java.lang.String concurrent)

      this.concurrent = concurrent;
   
public voidsetPostActivate(Method postActivate)

      this.postActivate = postActivate;
   
public voidsetPostConstruct(Method postConstruct)

      this.postConstruct = postConstruct;
   
public voidsetPreDestroy(Method preDestroy)

      this.preDestroy = preDestroy;
   
public voidsetPrePassivate(Method prePassivate)

      this.prePassivate = prePassivate;
   
public voidsetSessionType(java.lang.String sessionType)

      this.sessionType = sessionType;
   
public java.lang.StringtoString()

      StringBuffer sb = new StringBuffer(100);
      sb.append('[");
      sb.append(super.toString());
      sb.append(",");
      sb.append("sessionType=").append(sessionType);
      sb.append(']");
      return sb.toString();