Package org.codehaus.cargo.sample.java
Class EmbeddedContainerClasspathResolver
- java.lang.Object
-
- org.codehaus.cargo.sample.java.EmbeddedContainerClasspathResolver
-
public class EmbeddedContainerClasspathResolver extends Object
Create a classloader to load container classes.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedContainerClasspathResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
getDependencies(String containerId)
Get the dependencies list for a given container.ClassLoader
resolveDependencies(String containerId, String containerHome)
Resolve dependencies for an embedded container and create classpath.
-
-
-
Method Detail
-
getDependencies
protected List<String> getDependencies(String containerId)
Get the dependencies list for a given container.- Parameters:
containerId
- Container identifier.- Returns:
- Dependencies list.
-
resolveDependencies
public ClassLoader resolveDependencies(String containerId, String containerHome) throws FileNotFoundException
Resolve dependencies for an embedded container and create classpath.- Parameters:
containerId
- Container identifier.containerHome
- Container home.- Returns:
ClassLoader
with dependencies,null
if the container is not supported in the embedded mode.- Throws:
FileNotFoundException
- If some dependencies cannot be found.
-
-