1 22 package org.jboss.deployers.spi.structure; 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.deployer.DeploymentUnit; 31 import org.jboss.virtual.VirtualFile; 32 33 39 public interface DeploymentContext 40 { 41 46 String getName(); 47 48 59 public String getSimpleName(); 60 61 73 public String getRelativePath(); 74 75 80 StructureDetermined getStructureDetermined(); 81 82 87 void setStructureDetermined(StructureDetermined determined); 88 89 94 boolean isCandidate(); 95 96 101 DeploymentState getState(); 102 103 108 void setState(DeploymentState state); 109 110 115 DeploymentUnit getDeploymentUnit(); 116 117 122 void setDeploymentUnit(DeploymentUnit unit); 123 124 129 VirtualFile getRoot(); 130 131 136 void setMetaDataPath(String path); 137 138 143 VirtualFile getMetaDataLocation(); 144 145 150 void setMetaDataLocation(VirtualFile location); 151 152 159 VirtualFile getMetaDataFile(String name); 160 161 169 List <VirtualFile> getMetaDataFiles(String name, String suffix); 170 171 176 ClassLoader getClassLoader(); 177 178 183 void setClassLoader(ClassLoader classLoader); 184 185 192 boolean createClassLoader(ClassLoaderFactory factory) throws DeploymentException; 193 194 197 void removeClassLoader(); 198 199 204 List <VirtualFile> getClassPath(); 205 206 211 void setClassPath(List <VirtualFile> paths); 212 213 218 boolean isTopLevel(); 219 220 225 DeploymentContext getTopLevel(); 226 227 232 DeploymentContext getParent(); 233 234 239 void setParent(DeploymentContext parent); 240 241 246 Set <DeploymentContext> getChildren(); 247 248 253 void addChild(DeploymentContext child); 254 255 261 boolean removeChild(DeploymentContext child); 262 263 268 boolean isComponent(); 269 270 275 Set <DeploymentContext> getComponents(); 276 277 282 void addComponent(DeploymentContext component); 283 284 290 boolean removeComponent(DeploymentContext component); 291 292 299 void visit(DeploymentContextVisitor visitor) throws DeploymentException; 300 301 306 Attachments getPredeterminedManagedObjects(); 307 308 313 Attachments getTransientManagedObjects(); 314 315 320 Attachments getTransientAttachments(); 321 322 327 boolean isDeployed(); 328 329 332 void deployed(); 333 334 339 Throwable getProblem(); 340 341 346 void setProblem(Throwable problem); 347 348 351 void reset(); 352 } 353 | Popular Tags |