1 17 18 package org.apache.geronimo.connector.deployment; 19 20 import java.net.URL ; 21 import java.io.FileNotFoundException ; 22 import java.io.InputStream ; 23 import java.util.Enumeration ; 24 25 import javax.enterprise.deploy.model.DeployableObject ; 26 import javax.enterprise.deploy.model.DDBeanRoot ; 27 import javax.enterprise.deploy.model.DDBean ; 28 import javax.enterprise.deploy.model.exceptions.DDBeanCreateException; 29 import javax.enterprise.deploy.shared.ModuleType ; 30 31 import org.apache.geronimo.deployment.tools.DDBeanRootImpl; 32 33 39 public class MockRARDeployable implements DeployableObject { 40 41 private DDBeanRoot root; 42 43 public MockRARDeployable(URL dd) throws DDBeanCreateException { 44 root = new DDBeanRootImpl(this, dd); 45 } 46 47 public ModuleType getType() { 48 return ModuleType.RAR; 49 } 50 51 public DDBeanRoot getDDBeanRoot() { 52 return root; 53 } 54 55 public DDBean [] getChildBean(String xpath) { 56 return root.getChildBean(xpath); 57 } 58 59 public String [] getText(String xpath) { 60 return root.getText(xpath); 61 } 62 63 public Class getClassFromScope(String className) { 64 return null; 65 } 66 67 public String getModuleDTDVersion() { 68 return null; 69 } 70 71 public DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException , DDBeanCreateException { 72 return null; 73 } 74 75 public Enumeration entries() { 76 return null; 77 } 78 79 public InputStream getEntry(String name) { 80 return null; 81 } 82 } 83 | Popular Tags |