1 19 package org.netbeans.modules.j2ee.deployment.devmodules.spi; 20 21 import java.util.Collections ; 22 import java.util.HashSet ; 23 import java.util.Set ; 24 import org.netbeans.modules.j2ee.deployment.common.api.Datasource; 25 26 32 public abstract class J2eeAppProvider extends J2eeModuleProvider { 33 34 39 public abstract J2eeModuleProvider getChildModuleProvider(String uri); 40 41 45 public abstract J2eeModuleProvider[] getChildModuleProviders(); 46 47 51 public Set <Datasource> getModuleDatasources() { 52 53 Set <Datasource> projectDS = new HashSet <Datasource>(); 54 55 for (J2eeModuleProvider modProvider : getChildModuleProviders()) { 56 projectDS.addAll(modProvider.getModuleDatasources()); 57 } 58 59 return projectDS; 60 } 61 62 } 63 | Popular Tags |