1 28 29 package org.objectweb.jonas.resource; 30 31 import java.util.Properties ; 32 import java.io.File ; 33 import java.net.URL ; 34 35 44 public class JmxResourceAdapter implements JmxResourceAdapterMBean { 45 46 49 private Properties prop = null; 50 53 private String jndiname = null; 54 57 private String filename = null; 58 61 private boolean inEarCase = false; 62 65 private URL earURL = null; 66 67 75 public JmxResourceAdapter(Properties prop, String jndiname, String filename, 76 boolean inEarCase, URL earURL) { 77 this.prop = prop; 78 this.jndiname = jndiname; 79 try { 81 this.filename = (new File (filename)).toURL().getPath(); 82 } catch (Exception e) { 83 this.filename = filename; 84 } 85 this.inEarCase = inEarCase; 86 this.earURL = earURL; 87 } 88 89 93 public Properties getProperties() { 94 return prop; 95 } 96 97 101 public String getJndiName() { 102 return jndiname; 103 } 104 105 109 public String getFilename() { 110 return filename; 111 } 112 113 117 public boolean isInEarCase() { 118 return inEarCase; 119 } 120 121 125 public URL getEarURL() { 126 return earURL; 127 } 128 } 129 | Popular Tags |