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.ClassLoaderclassLoader
-
Constructor Summary
Constructors Modifier Constructor Description privateClassLoaderFacadeImpl()
-
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.voidprependUrls(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.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
public java.lang.Class<?> loadClass(java.lang.String idlCompilerClass) throws java.lang.ClassNotFoundExceptionDescription 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:
java.lang.ClassNotFoundException- if the specified class doesn't exist
-
-