Class DefaultClassRealmRequest

    • Field Detail

      • parent

        private final java.lang.ClassLoader parent
      • parentImports

        private final java.util.List<java.lang.String> parentImports
      • foreignImports

        private final java.util.Map<java.lang.String,​java.lang.ClassLoader> foreignImports
    • Constructor Detail

      • DefaultClassRealmRequest

        DefaultClassRealmRequest​(ClassRealmRequest.RealmType type,
                                 java.lang.ClassLoader parent,
                                 java.util.List<java.lang.String> parentImports,
                                 java.util.Map<java.lang.String,​java.lang.ClassLoader> foreignImports,
                                 java.util.List<ClassRealmConstituent> constituents)
    • Method Detail

      • getParent

        public java.lang.ClassLoader getParent()
        Description copied from interface: ClassRealmRequest
        Gets the parent class realm (if any).
        Specified by:
        getParent in interface ClassRealmRequest
        Returns:
        The parent class realm or null if using the default parent.
      • getParentImports

        public java.util.List<java.lang.String> getParentImports()
        Description copied from interface: ClassRealmRequest
        Gets the packages/types to import from the parent realm.
        Specified by:
        getParentImports in interface ClassRealmRequest
        Returns:
        The modifiable list of packages/types to import from the parent realm, never null.
      • getForeignImports

        public java.util.Map<java.lang.String,​java.lang.ClassLoader> getForeignImports()
        Description copied from interface: ClassRealmRequest
        Gets the packages/types to import from foreign realms.
        Specified by:
        getForeignImports in interface ClassRealmRequest
        Returns:
        The modifiable map of packages/types to import from foreign realms, never null.