1 19 20 package org.netbeans.modules.j2ee.common; 21 22 import java.io.File ; 23 import java.util.Set ; 24 import org.netbeans.modules.j2ee.deployment.common.api.Datasource; 25 import org.netbeans.modules.j2ee.deployment.devmodules.api.J2eeModule; 26 import org.netbeans.modules.j2ee.deployment.devmodules.api.ModuleChangeReporter; 27 import org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider; 28 import org.openide.filesystems.FileObject; 29 30 34 public class J2eeModuleProviderImpl extends J2eeModuleProvider { 35 36 private Set <Datasource> moduleDatasources; 37 private Set <Datasource> serverDatasources; 38 private boolean creationAllowed; 39 40 public J2eeModuleProviderImpl(Set <Datasource> moduleDatasources, Set <Datasource> serverDatasources) { 41 this(moduleDatasources, serverDatasources, true); 42 } 43 44 public J2eeModuleProviderImpl(Set <Datasource> moduleDatasources, Set <Datasource> serverDatasources, boolean creationAllowed) { 45 this.moduleDatasources = moduleDatasources; 46 this.serverDatasources = serverDatasources; 47 this.creationAllowed = creationAllowed; 48 } 49 50 52 public void setServerInstanceID(String severInstanceID) { 53 } 54 55 public File getDeploymentConfigurationFile(String name) { 56 return null; 57 } 58 59 public FileObject findDeploymentConfigurationFile(String name) { 60 return null; 61 } 62 63 public ModuleChangeReporter getModuleChangeReporter() { 64 return null; 65 } 66 67 public J2eeModule getJ2eeModule() { 68 return null; 69 } 70 71 73 public Set <Datasource> getModuleDatasources() { 74 return moduleDatasources; 75 } 76 77 public Set <Datasource> getServerDatasources() { 78 return serverDatasources; 79 } 80 81 public boolean isDatasourceCreationSupported() { 82 return creationAllowed; 83 } 84 85 } 86 | Popular Tags |