Interface ClassRealm

  • All Known Implementing Classes:
    DefaultClassRealm

    public interface ClassRealm
    Autonomous sub-portion of a ClassWorld.

    This class most closed maps to the ClassLoader role from Java and in facts can provide a ClassLoader view of itself using getClassLoader().

    Version:
    $Id: ClassRealm.java 126 2006-01-12 04:17:51Z $
    Author:
    bob mcwhirter, Jason van Zyl
    • Method Detail

      • getId

        java.lang.String getId()
      • addConstituent

        void addConstituent​(java.net.URL constituent)
      • locateSourceRealm

        ClassRealm locateSourceRealm​(java.lang.String className)
      • setParent

        void setParent​(ClassRealm classRealm)
      • getClassLoader

        java.lang.ClassLoader getClassLoader()
      • getConstituents

        java.net.URL[] getConstituents()
      • loadClass

        java.lang.Class loadClass​(java.lang.String name)
                           throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • getResource

        java.net.URL getResource​(java.lang.String name)
      • findResources

        java.util.Enumeration findResources​(java.lang.String name)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getResourceAsStream

        java.io.InputStream getResourceAsStream​(java.lang.String name)
      • display

        void display()