1 25 26 package org.objectweb.jonas.dbm; 27 28 import java.util.ArrayList ; 30 31 import org.objectweb.jonas.management.j2eemanagement.J2EEResource; 32 33 39 public class JDBCResource extends J2EEResource { 40 44 private ArrayList jdbcDataSources = new ArrayList (); 45 46 50 public JDBCResource(String objectName) { 51 super(objectName); 52 } 53 54 57 public String [] getJdbcDataSources() { 58 return ((String []) jdbcDataSources.toArray(new String [jdbcDataSources.size()])); 59 } 60 61 65 public void addJdbcDataSource(String jdbcDataSourceName) { 66 jdbcDataSources.add(jdbcDataSourceName); 67 } 68 69 73 public void removeJdbcDataSource(String jdbcDataSourceName) { 74 jdbcDataSources.remove(jdbcDataSourceName); 75 } 76 } 77 | Popular Tags |