1 25 26 package org.objectweb.jonas.resource; 27 28 import java.util.ArrayList ; 30 31 import org.objectweb.jonas.management.j2eemanagement.J2EEResource; 32 33 39 public class JCAResource extends J2EEResource { 40 41 45 private ArrayList connectionFactories = new ArrayList (); 46 49 private ArrayList adminObjects = new ArrayList (); 50 53 private ArrayList activationSpecs = new ArrayList (); 54 55 59 public JCAResource(String objectName) { 60 super(objectName); 61 } 62 63 67 public String [] getActivationSpecs() { 68 return ((String []) activationSpecs.toArray(new String [activationSpecs.size()])); 70 } 71 72 76 public String [] getAdminObjects() { 77 return ((String []) adminObjects.toArray(new String [adminObjects.size()])); 79 } 80 81 85 public String [] getConnectionFactories() { 86 return ((String []) connectionFactories.toArray(new String [connectionFactories.size()])); 88 } 89 90 94 public void setAdminObjects(String adminObjectName) { 95 adminObjects.add(adminObjectName); 96 } 97 98 102 public void setActivationSpecs(String activationSpecsObjectName) { 103 activationSpecs.add(activationSpecsObjectName); 104 } 105 109 public void setConnectionFactory(String connectionFactoryObjectName) { 110 connectionFactories.add(connectionFactoryObjectName); 111 } 112 } 113 | Popular Tags |