Package org.codehaus.mojo.idlj
Interface AbstractTranslator.ClassLoaderFacade
-
- All Known Implementing Classes:
AbstractTranslator.ClassLoaderFacadeImpl
- Enclosing class:
- AbstractTranslator
static interface AbstractTranslator.ClassLoaderFacadeAn interface for loading the proper IDL compiler class.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void prependUrls(java.net.URL... urls)
Updates the active classloader to include the specified URLs before the original definitions.- Parameters:
urls- a list of URLs to include when searching for classes.
-
loadClass
java.lang.Class<?> loadClass(java.lang.String idlCompilerClass) throws java.lang.ClassNotFoundExceptionLoads the specified class using the appropriate classloader.- 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
-
-