Interface IClassProvider


public interface IClassProvider
Interface for marshal object which can retrieve classes from the environment
  • Method Summary

    Modifier and Type
    Method
    Description
    findAgentClass(String name, boolean initialize)
    Marshal a call to Class.forName for an agent class
    Find a class in the service classloader
    findClass(String name, boolean initialize)
    Marshal a call to Class.forName for a regular class
    URL[]
    Deprecated.
    As of 0.8, use of this method is not a sensible way to access available containers.
  • Method Details

    • getClassPath

      @Deprecated URL[] getClassPath()
      Deprecated.
      As of 0.8, use of this method is not a sensible way to access available containers.
      Get the current classpath from the service classloader
    • findClass

      Class<?> findClass(String name) throws ClassNotFoundException
      Find a class in the service classloader
      Parameters:
      name - class name
      Returns:
      resultant class
      Throws:
      ClassNotFoundException - if the class was not found
    • findClass

      Class<?> findClass(String name, boolean initialize) throws ClassNotFoundException
      Marshal a call to Class.forName for a regular class
      Parameters:
      name - class name
      initialize - init flag
      Returns:
      Klass
      Throws:
      ClassNotFoundException
    • findAgentClass

      Class<?> findAgentClass(String name, boolean initialize) throws ClassNotFoundException
      Marshal a call to Class.forName for an agent class
      Parameters:
      name - agent class name
      initialize - init flag
      Returns:
      Klass
      Throws:
      ClassNotFoundException