1 19 20 package org.netbeans.modules.test.serverplugins.glassfish; 21 22 import org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties; 23 import org.netbeans.modules.test.serverplugins.api.ServerProvider; 24 25 30 public class GlassfishServerProvider implements ServerProvider { 31 32 private static final String PROP_PORT = "httportnumber"; 33 private static final String PROP_DOMAIN = "DOMAIN"; 34 private static final String PROP_LOCATION = "LOCATION"; 35 36 private GlassfishConstantsProvider cProvider; 37 38 43 public GlassfishServerProvider(GlassfishConstantsProvider cProvider) { 44 this.cProvider = cProvider; 45 } 46 47 public void setServerSpecificProperties(InstanceProperties ip) { 48 ip.setProperty(PROP_PORT, cProvider.getPort()); 49 ip.setProperty(PROP_DOMAIN, cProvider.getDomain()); 50 ip.setProperty(PROP_LOCATION, cProvider.getDomainRoot()); 51 } 52 53 } 54 | Popular Tags |