Class AbstractTranslator.ClassLoaderFacadeImpl
java.lang.Object
org.codehaus.mojo.idlj.AbstractTranslator.ClassLoaderFacadeImpl
- All Implemented Interfaces:
AbstractTranslator.ClassLoaderFacade
- Enclosing class:
AbstractTranslator
private static class AbstractTranslator.ClassLoaderFacadeImpl
extends Object
implements AbstractTranslator.ClassLoaderFacade
The implementation of ClassLoaderFacade used at runtime.
- Version:
- $Id: AbstractIDLJMojo.java 9189 2009-03-10 21:47:46Z aheritier $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Loads the specified class using the appropriate classloader.voidprependUrls(URL... urls) Updates the active classloader to include the specified URLs before the original definitions.
-
Field Details
-
classLoader
ClassLoader classLoader
-
-
Constructor Details
-
ClassLoaderFacadeImpl
private ClassLoaderFacadeImpl()
-
-
Method Details
-
prependUrls
Description copied from interface:AbstractTranslator.ClassLoaderFacadeUpdates the active classloader to include the specified URLs before the original definitions.- Specified by:
prependUrlsin interfaceAbstractTranslator.ClassLoaderFacade- Parameters:
urls- a list of URLs to include when searching for classes.
-
loadClass
Description copied from interface:AbstractTranslator.ClassLoaderFacadeLoads the specified class using the appropriate classloader.- Specified by:
loadClassin interfaceAbstractTranslator.ClassLoaderFacade- Parameters:
idlCompilerClass- the name of the class to use for compiling IDL files.- Returns:
- the actual compiler class to use
- Throws:
ClassNotFoundException- if the specified class doesn't exist
-