1 22 package org.jboss.deployers.spi.deployer; 23 24 import java.util.List ; 25 import java.util.Set ; 26 27 import org.jboss.deployers.spi.DeploymentException; 28 import org.jboss.deployers.spi.attachments.Attachments; 29 import org.jboss.deployers.spi.classloader.ClassLoaderFactory; 30 import org.jboss.deployers.spi.structure.DeploymentContext; 31 import org.jboss.virtual.VirtualFile; 32 33 43 public interface DeploymentUnit extends Attachments 44 { 45 50 String getName(); 51 52 64 public String getSimpleName(); 65 66 79 public String getRelativePath(); 80 81 89 VirtualFile getMetaDataFile(String name); 90 91 99 List <VirtualFile> getMetaDataFiles(String name, String suffix); 100 101 108 VirtualFile getFile(String name); 109 110 115 ClassLoader getClassLoader(); 116 117 125 boolean createClassLoader(ClassLoaderFactory factory) throws DeploymentException; 126 127 132 Attachments getTransientManagedObjects(); 133 134 143 <T> Set <? extends T> getAllMetaData(Class <T> type); 144 145 152 DeploymentUnit addComponent(String name); 153 154 161 boolean removeComponent(String name); 162 163 168 @Deprecated DeploymentContext getDeploymentContext(); 170 } 171 | Popular Tags |