1 27 package org.objectweb.jonas_rar.deployment.api; 28 29 import java.io.Serializable ; 30 import java.util.List ; 31 32 import org.objectweb.jonas_rar.deployment.xml.JonasConnector; 33 34 35 40 41 public class JonasConnectorDesc implements Serializable { 42 43 46 private String jndiName = null; 47 48 51 private String rarlink = null; 52 53 56 private String nativeLib = null; 57 58 61 private String logEnabled = null; 62 63 66 private String logTopic = null; 67 68 71 private PoolParamsDesc poolParamsDesc = null; 72 73 76 private JdbcConnParamsDesc jdbcConnParamsDesc = null; 77 78 81 private TmParamsDesc tmParamsDesc = null; 82 83 86 private List jonasConfigPropertyList = null; 87 88 91 private List jonasConnectionDefinitionList = null; 92 93 96 private List jonasActivationspecList = null; 97 98 101 private List jonasAdminobjectList = null; 102 103 106 private JonasSecurityMappingDesc jonasSecurityMappingDesc = null; 107 108 111 public JonasConnectorDesc(JonasConnector jc) { 112 if (jc != null) { 113 jndiName = jc.getJndiName(); 114 rarlink = jc.getRarlink(); 115 nativeLib = jc.getNativeLib(); 116 logEnabled = jc.getLogEnabled(); 117 logTopic = jc.getLogTopic(); 118 poolParamsDesc = new PoolParamsDesc(jc.getPoolParams()); 119 jdbcConnParamsDesc = new JdbcConnParamsDesc(jc.getJdbcConnParams()); 120 tmParamsDesc = new TmParamsDesc(jc.getTmParams()); 121 122 jonasConfigPropertyList = Utility.jonasConfigProperty(jc.getJonasConfigPropertyList()); 123 jonasConnectionDefinitionList = Utility.jonasConnectionDefinition(jc.getJonasConnectionDefinitionList()); 124 jonasActivationspecList = Utility.jonasActivationspec(jc.getJonasActivationspecList()); 125 jonasAdminobjectList = Utility.jonasAdminobject(jc.getJonasAdminobjectList()); 126 jonasSecurityMappingDesc = new JonasSecurityMappingDesc(jc.getJonasSecurityMapping()); 127 } 128 } 129 130 134 public String getJndiName() { 135 return jndiName; 136 } 137 138 142 public String getRarlink() { 143 return rarlink; 144 } 145 146 150 public String getNativeLib() { 151 return nativeLib; 152 } 153 154 158 public String getLogEnabled() { 159 return logEnabled; 160 } 161 162 166 public String getLogTopic() { 167 return logTopic; 168 } 169 170 174 public PoolParamsDesc getPoolParamsDesc() { 175 return poolParamsDesc; 176 } 177 178 182 public JdbcConnParamsDesc getJdbcConnParamsDesc() { 183 return jdbcConnParamsDesc; 184 } 185 186 190 public List getJonasConfigPropertyList() { 191 return jonasConfigPropertyList; 192 } 193 194 198 public List getJonasConnectionDefinitionList() { 199 return jonasConnectionDefinitionList; 200 } 201 202 206 public List getJonasActivationspecList() { 207 return jonasActivationspecList; 208 } 209 210 214 public List getJonasAdminobjectList() { 215 return jonasAdminobjectList; 216 } 217 218 222 public JonasSecurityMappingDesc getJonasSecurityMappingDesc() { 223 return jonasSecurityMappingDesc; 224 } 225 226 230 public TmParamsDesc getTmParamsDesc() { 231 return tmParamsDesc; 232 } 233 234 } 235 | Popular Tags |