Package org.codehaus.mojo.idlj
Interface AbstractTranslator.ClassLoaderFacade
- All Known Implementing Classes:
AbstractTranslator.ClassLoaderFacadeImpl
- Enclosing class:
AbstractTranslator
static interface AbstractTranslator.ClassLoaderFacade
An interface for loading the proper IDL compiler class.
-
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.
-
Method Details
-
prependUrls
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
Loads 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:
ClassNotFoundException
- if the specified class doesn't exist
-