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 java.lang.Object implements AbstractTranslator.ClassLoaderFacade
The implementation of ClassLoaderFacade used at runtime.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.ClassLoader
classLoader
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassLoaderFacadeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
loadClass(java.lang.String idlCompilerClass)
Loads the specified class using the appropriate classloader.void
prependUrls(java.net.URL... urls)
Updates the active classloader to include the specified URLs before the original definitions.
-
-
-
Method Detail
-
prependUrls
public void prependUrls(java.net.URL... urls)
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
public java.lang.Class<?> loadClass(java.lang.String idlCompilerClass) throws java.lang.ClassNotFoundException
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:
java.lang.ClassNotFoundException
- if the specified class doesn't exist
-
-