org.codehaus.mojo.fit
Class FixtureClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.codehaus.mojo.fit.FixtureClassLoader

public class FixtureClassLoader
extends java.net.URLClassLoader

Extends URLClassLoader to instantiate Fixture classes.

Author:
Mauro Talevi

Constructor Summary
FixtureClassLoader()
           
FixtureClassLoader(java.util.List classpathElements)
           
FixtureClassLoader(java.net.URL[] urls)
           
FixtureClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
           
 
Method Summary
 fit.Fixture newFixture(java.lang.String fixtureName)
          Loads and instantiates a Fixture
protected static java.net.URL[] toClasspathURLs(java.util.List classpathElements)
           
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixtureClassLoader

public FixtureClassLoader()

FixtureClassLoader

public FixtureClassLoader(java.util.List classpathElements)
                   throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

FixtureClassLoader

public FixtureClassLoader(java.net.URL[] urls)

FixtureClassLoader

public FixtureClassLoader(java.net.URL[] urls,
                          java.lang.ClassLoader parent)
Method Detail

newFixture

public fit.Fixture newFixture(java.lang.String fixtureName)
                       throws java.lang.InstantiationException,
                              java.lang.IllegalAccessException
Loads and instantiates a Fixture

Parameters:
fixtureName - the name of the Fixture
Returns:
A new Fixture instance
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

toClasspathURLs

protected static java.net.URL[] toClasspathURLs(java.util.List classpathElements)
                                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException


Copyright © 2006-2009 Codehaus. All Rights Reserved.