1 19 20 21 package org.netbeans.modules.j2ee.deployment.config; 22 23 import java.util.Collections ; 24 import javax.enterprise.deploy.model.*; 25 import javax.enterprise.deploy.shared.ModuleType ; 26 import org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider; 27 28 public class DeployableObjectImpl implements DeployableObject { 29 30 final ModuleDeploymentSupport support; 31 32 33 DeployableObjectImpl(ModuleDeploymentSupport support) { 34 this.support = support; 35 } 36 37 public ModuleType getType() { 38 return support.getType(); 39 } 40 41 public DDBeanRoot getDDBeanRoot() { 42 return support.getDDBeanRoot(); 45 } 46 47 public DDBean[] getChildBean(String xpath) { 48 return getDDBeanRoot().getChildBean(xpath); 49 } 50 51 public String [] getText(String xpath) { 52 return getDDBeanRoot().getText(xpath); 53 } 54 55 public String getModuleDTDVersion() { 56 return support.getVersion(); 57 } 58 59 public java.util.Enumeration entries() { 60 return Collections.enumeration(Collections.EMPTY_LIST); 61 } 62 63 public DDBeanRoot getDDBeanRoot(String filename) throws java.io.FileNotFoundException , javax.enterprise.deploy.model.exceptions.DDBeanCreateException { 64 return support.getDDBeanRoot(ModuleDeploymentSupport.filenameToPath(filename, getType())); 65 } 66 67 public java.io.InputStream getEntry(String str) { 68 return null; 69 } 70 71 public Class getClassFromScope(String str) { 72 return support.getClassFromScope(str); 73 } 74 75 public J2eeModuleProvider getProvider() { 76 return support.getProvider(); 77 } 78 } 79 | Popular Tags |