1 25 26 package org.objectweb.jonas.resource; 27 28 import org.objectweb.jonas.management.j2eemanagement.J2EEModule; 29 30 import java.util.ArrayList ; 31 import java.net.URL ; 32 33 38 public class ResourceAdapterModule extends J2EEModule { 39 40 private ArrayList resourceAdapters = new ArrayList (); 42 43 private boolean inEarCase = false; 44 private URL earURL = null; 45 private String fileName = null; 46 47 public ResourceAdapterModule(String objectName, boolean inEarCase, URL earURL) { 48 super(objectName); 49 this.inEarCase = inEarCase; 50 this.earURL = earURL; 51 } 52 53 57 public boolean getInEarCase() { 58 return inEarCase; 59 } 60 61 65 public URL getEarURL() { 66 return earURL; 67 } 68 69 public String [] getResourceAdapters() { 70 return ((String []) resourceAdapters.toArray(new String [resourceAdapters.size()])); 71 } 72 73 public void setResourceAdapter(String resourceAdapterObjectName) { 74 resourceAdapters.add(resourceAdapterObjectName); 75 } 76 79 public String getFileName() { 80 return fileName; 81 } 82 85 public void setFileName(String fileName) { 86 this.fileName = fileName; 87 } 88 } 89 | Popular Tags |