Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.metadata
Class DeploymentContext

java.lang.Object
  extended by org.jboss.errai.common.metadata.DeploymentContext

public class DeploymentContext
extends Object

DeploymentContext and PackagingUtil identify and unpack nested subdeployments (i.e. WAR inside EAR) before passing the resulting URL's to the Reflections implementation.

Calling close() deletes the temporary created archive files. Subsequent call to Reflection rely on classloading and don't need these artifacts anymore.

Author:
Heiko Braun

Constructor Summary
DeploymentContext(List<URL> configUrls)
           
 
Method Summary
 void close()
           
static boolean deleteDirectory(File path)
           
 List<URL> getConfigUrls()
           
 Map<String,File> getSubContexts()
           
 boolean hasProcessed(File file)
           
 void markProcessed(File file)
           
 void markTmpFile(File file)
           
 List<URL> process()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentContext

public DeploymentContext(List<URL> configUrls)
Method Detail

getConfigUrls

public List<URL> getConfigUrls()

getSubContexts

public Map<String,File> getSubContexts()

hasProcessed

public boolean hasProcessed(File file)

markProcessed

public void markProcessed(File file)

process

public List<URL> process()

markTmpFile

public void markTmpFile(File file)

close

public void close()

deleteDirectory

public static boolean deleteDirectory(File path)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.