1 25 26 package org.objectweb.easybeans.deployment.xml.struct.common; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 import org.objectweb.easybeans.deployment.xml.struct.LifeCycleCallback; 32 33 37 public class AbsEnvironment { 38 39 42 private List <EnvEntry> envEntryList = null; 43 44 47 private List <LifeCycleCallback> postConstructList = null; 48 49 50 53 private List <LifeCycleCallback> preDestroyList = null; 54 55 58 public AbsEnvironment() { 59 envEntryList = new ArrayList <EnvEntry>(); 60 postConstructList = new ArrayList <LifeCycleCallback>(); 61 preDestroyList = new ArrayList <LifeCycleCallback>(); 62 } 63 64 68 public void addEnvEntry(final EnvEntry envEntry) { 69 envEntryList.add(envEntry); 70 } 71 72 75 public List <EnvEntry> getEnvEntryList() { 76 return envEntryList; 77 } 78 79 83 public void addPostConstruct(final LifeCycleCallback postConstruct) { 84 postConstructList.add(postConstruct); 85 } 86 87 90 public List <LifeCycleCallback> getPostConstructList() { 91 return postConstructList; 92 } 93 94 98 public void addPreDestroy(final LifeCycleCallback preDestroy) { 99 preDestroyList.add(preDestroy); 100 } 101 102 105 public List <LifeCycleCallback> getPreDestroyList() { 106 return preDestroyList; 107 } 108 109 } 110 | Popular Tags |