1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.ArrayList ; 25 import java.util.Collection ; 26 import java.util.HashSet ; 27 import java.util.List ; 28 29 import org.jboss.logging.Logger; 30 import org.jboss.metamodel.descriptor.EnvironmentRefGroup; 31 32 40 public class ApplicationClientDD extends EnvironmentRefGroup 41 { 42 @SuppressWarnings ("unused") 43 private static final Logger log = Logger.getLogger(ApplicationClientDD.class); 44 45 private String displayName; 46 47 55 private List <LifecycleCallback> postConstructs = new ArrayList <LifecycleCallback>(); 56 private List <LifecycleCallback> preDestroys = new ArrayList <LifecycleCallback>(); 57 private String callbackHandlerClass = null; 58 59 private String version = null; 60 private boolean metadataComplete = false; 61 62 64 private String jndiName; 65 66 private Collection <String > dependencies = new HashSet <String >(); 67 68 public void addDependency(String depends) 69 { 70 dependencies.add(depends); 71 } 72 73 public Collection <String > getDependencies() 74 { 75 return dependencies; 76 } 77 78 public String getDisplayName() 79 { 80 return displayName; 81 } 82 83 public void setDisplayName(String displayName) 84 { 85 this.displayName = displayName; 86 } 87 88 public String getJndiName() 89 { 90 if(jndiName == null) 91 return getDisplayName(); 92 return jndiName; 93 } 94 95 public void setJndiName(String jndiName) 96 { 97 this.jndiName = jndiName; 98 } 99 100 public boolean isMetaDataComplete() 101 { 102 return metadataComplete; 103 } 104 105 public void setMetadataComplete(boolean metadataComplete) 106 { 107 this.metadataComplete = metadataComplete; 108 } 109 110 public List <LifecycleCallback> getPostConstructs() 111 { 112 return postConstructs; 113 } 114 115 public List <LifecycleCallback> getPreDestroys() 116 { 117 return preDestroys; 118 } 119 120 public String getVersion() 121 { 122 return version; 123 } 124 125 public void setVersion(String version) 126 { 127 this.version = version; 128 } 129 } 130 | Popular Tags |