org.objectweb.easybeans.deployment.xml.struct.common
Class AbsEnvironment

java.lang.Object
  extended by org.objectweb.easybeans.deployment.xml.struct.common.AbsEnvironment
Direct Known Subclasses:
AbsBean

public class AbsEnvironment
extends java.lang.Object

This class defines an implementation for an environment element.

Author:
Florent Benoit

Field Summary
private  java.util.List<EnvEntry> envEntryList
          List of <env-entry> elements.
private  java.util.List<LifeCycleCallback> postConstructList
          List of <post-construct> elements.
private  java.util.List<LifeCycleCallback> preDestroyList
          List of <pre-destroy> elements.
 
Constructor Summary
AbsEnvironment()
          Constructor : build a new object for environment.
 
Method Summary
 void addEnvEntry(EnvEntry envEntry)
          Add a new env-entry element to this object.
 void addPostConstruct(LifeCycleCallback postConstruct)
          Add a new postConstruct element to this object.
 void addPreDestroy(LifeCycleCallback preDestroy)
          Add a new preDestroy element to this object.
 java.util.List<EnvEntry> getEnvEntryList()
           
 java.util.List<LifeCycleCallback> getPostConstructList()
           
 java.util.List<LifeCycleCallback> getPreDestroyList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

envEntryList

private java.util.List<EnvEntry> envEntryList
List of <env-entry> elements.


postConstructList

private java.util.List<LifeCycleCallback> postConstructList
List of <post-construct> elements.


preDestroyList

private java.util.List<LifeCycleCallback> preDestroyList
List of <pre-destroy> elements.

Constructor Detail

AbsEnvironment

public AbsEnvironment()
Constructor : build a new object for environment.

Method Detail

addEnvEntry

public void addEnvEntry(EnvEntry envEntry)
Add a new env-entry element to this object.

Parameters:
envEntry - the ejb-ref object

getEnvEntryList

public java.util.List<EnvEntry> getEnvEntryList()
Returns:
the list of all env-entry elements

addPostConstruct

public void addPostConstruct(LifeCycleCallback postConstruct)
Add a new postConstruct element to this object.

Parameters:
postConstruct - the post-construct object

getPostConstructList

public java.util.List<LifeCycleCallback> getPostConstructList()
Returns:
the list of all post-construct elements

addPreDestroy

public void addPreDestroy(LifeCycleCallback preDestroy)
Add a new preDestroy element to this object.

Parameters:
preDestroy - the pre-destroy object

getPreDestroyList

public java.util.List<LifeCycleCallback> getPreDestroyList()
Returns:
the list of all pre-destroy elements