Class ClassLoaderEvent

java.lang.Object
java.util.EventObject
org.jppf.classloader.ClassLoaderEvent
All Implemented Interfaces:
Serializable

public class ClassLoaderEvent extends EventObject
Event emitted by an AbstractJPPFClassLoader when a class is loaded or not found for the first time.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • ClassLoaderEvent

      public ClassLoaderEvent(AbstractJPPFClassLoader classLoader, Class<?> loadedClass, boolean foundInURLClassPath)
      Initialize this event with the specified source and Class object.n
      Parameters:
      classLoader - the source of this event.
      loadedClass - the class that was successfully loaded.
      foundInURLClassPath - true if the class was loaded from the class loader's URL classpath, false if it was loaded from a remote JPPF driver or client.
    • ClassLoaderEvent

      public ClassLoaderEvent(AbstractJPPFClassLoader classLoader, String className)
      Initialize this event with the specified source and Class object.n
      Parameters:
      classLoader - the source of this event.
      className - the name of a class that could not be found by this class loader.
  • Method Details

    • getLoadedClass

      public Class<?> getLoadedClass()
      Get the class that was successfully loaded.
      Returns:
      a Class object, or null if the class was not found.
    • getClassName

      public String getClassName()
      Get the name of a class that was loaded or could not be found by this class loader.
      Returns:
      the class name as a string.
    • isFoundInURLClassPath

      public boolean isFoundInURLClassPath()
      Determine whether the class was loaded from the class loader's URL classpath.
      Returns:
      true if the class was loaded from the class loader's URL classpath, false if it was loaded from a remote JPPF driver or client.
    • getClassLoader

      public AbstractJPPFClassLoader getClassLoader()
      Get the class laoder which emitted this event.
      Returns:
      a AbstractJPPFClassLoader instance.