Class CustomClassLoader

java.lang.Object
java.lang.ClassLoader
com.infoteria.asteria.flowengine2.storage.CustomClassLoader
Direct Known Subclasses:
ComponentClassLoader

public abstract class CustomClassLoader extends ClassLoader
To parse custom classloader details from a XML definition, this is an example for a basic configuration:
  <ClassLoader jarDir="{pathToLibraries}">
If the classloader properties should be configurable by the user in the Flow Designer, properties with the following names can be added to the classloader configuration:
  • "Jarfile": a single jar file to add
  • "JarfilesDir": a directory containing jar files
The classloader configuration might look like this:
  <ClassLoader jarDir="{pathToLibraries}">
    <Property initialState="collapse" name="ClassloaderDetails" type="group" unfold="true">
      <Property name="Jarfile" type="remoteFile"/>
      <Property name="JarfilesDir" type="remoteFile"/>
    </Property>
  </ClassLoader>
The following lists describe all available attributes and elements of the classloader configuration.

List of attributes:

  • classLoaderClass: The custom classloader implementation class. Default: com.infoteria.asteria.flowengine2.flow.ComponentClassLoader.
  • jarDir: Directory containing libraries to load. Either absolute path or relative to [data_dir]/system/lib/separated.
  • classesdir: Directory containing class files to load. Either absolute path or relative to [data_dir]/system/lib/separated.

List of elements:

  • Jar: A jar file to load. Add path to jar file as attribute "path". Either absolute path or relative to [data_dir]/system/lib/separated.
  • ExcludePkg: Packages, that will not be loaded by this classloader, even when contained in the specified resources. By default, the ComponentClassLoader adds the following packages as excluded packages: com.infoteria.asteria, java, jdk, sun, com.sun, oracle
  • IncludePkg: Packages, that will be loaded by this classloader, even when its parent package is contained in the excluded list.