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 Type
    Method
    Description
    loadClass(String idlCompilerClass)
    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

      void prependUrls(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

      Class<?> loadClass(String idlCompilerClass) throws ClassNotFoundException
      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