Package org.codehaus.mojo.idlj
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> Loads the specified class using the appropriate classloader.void
prependUrls
(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.ClassLoaderFacade
Updates the active classloader to include the specified URLs before the original definitions.- Specified by:
prependUrls
in interfaceAbstractTranslator.ClassLoaderFacade
- Parameters:
urls
- a list of URLs to include when searching for classes.
-
loadClass
Description copied from interface:AbstractTranslator.ClassLoaderFacade
Loads the specified class using the appropriate classloader.- Specified by:
loadClass
in 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
-