1 25 26 package org.objectweb.jonas.resource; 27 28 import java.util.Properties ; 29 import java.io.File ; 30 import java.net.URL ; 31 32 import org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject; 33 import org.objectweb.jonas.resource.pool.api.Pool; 34 35 42 public class ResourceAdapter extends J2EEManagedObject { 43 44 48 private String jcaResourceObjectName = null; 49 50 53 private Properties prop = null; 54 57 private String jndiName = null; 58 61 private String filename = null; 62 65 private boolean inEarCase = false; 66 69 private URL earURL = null; 70 73 private String specVersion = null; 74 75 76 86 public ResourceAdapter(String objectName, Properties prop, String jndiName, String filename, 87 boolean inEarCase, URL earURL, String specVersion) { 88 super(objectName); 89 this.prop = prop; 90 this.jndiName = jndiName; 91 try { 93 this.filename = (new File (filename)).toURL().getPath(); 94 } catch (Exception e) { 95 this.filename = filename; 96 } 97 this.inEarCase = inEarCase; 98 this.earURL = earURL; 99 this.specVersion = specVersion; 100 } 101 102 106 public Properties getProperties() { 107 return prop; 108 } 109 110 114 public String getJndiName() { 115 return jndiName; 116 } 117 118 122 public String getFileName() { 123 return filename; 124 } 125 126 130 public boolean getInEarCase() { 131 return inEarCase; 132 } 133 134 138 public URL getEarURL() { 139 return earURL; 140 } 141 142 146 public String getJcaResource() { 147 return jcaResourceObjectName; 148 } 149 150 154 public String getSpecVersion() { 155 return specVersion; 156 } 157 158 162 public void setJcaResource(String jcaResourceObjectName) { 163 this.jcaResourceObjectName = jcaResourceObjectName; 164 } 165 } 166 | Popular Tags |