Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.rmi.server

Class RMIClassLoaderSpi

    • Constructor Detail

      • RMIClassLoaderSpi

        public RMIClassLoaderSpi()
    • Method Detail

      • loadClass

        public abstract Class<?> loadClass(String codebase,
                         String name,
                         ClassLoader defaultLoader)
                                    throws MalformedURLException,
                                           ClassNotFoundException
        Provides the implementation for RMIClassLoader.loadClass(URL,String), RMIClassLoader.loadClass(String,String), and RMIClassLoader.loadClass(String,String,ClassLoader). Loads a class from a codebase URL path, optionally using the supplied loader. Typically, a provider implementation will attempt to resolve the named class using the given defaultLoader, if specified, before attempting to resolve the class from the codebase URL path.

        An implementation of this method must either return a class with the given name or throw an exception.

        Parameters:
        codebase - the list of URLs (separated by spaces) to load the class from, or null
        name - the name of the class to load
        defaultLoader - additional contextual class loader to use, or null
        Returns:
        the Class object representing the loaded class
        Throws:
        MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase is null and a provider-specific URL used to load classes is invalid
        ClassNotFoundException - if a definition for the class could not be found at the specified location
      • loadProxyClass

        public abstract Class<?> loadProxyClass(String codebase,
                              String[] interfaces,
                              ClassLoader defaultLoader)
                                         throws MalformedURLException,
                                                ClassNotFoundException
        Provides the implementation for RMIClassLoader.loadProxyClass(String,String[],ClassLoader). Loads a dynamic proxy class (see Proxy that implements a set of interfaces with the given names from a codebase URL path, optionally using the supplied loader.

        An implementation of this method must either return a proxy class that implements the named interfaces or throw an exception.

        Parameters:
        codebase - the list of URLs (space-separated) to load classes from, or null
        interfaces - the names of the interfaces for the proxy class to implement
        defaultLoader - additional contextual class loader to use, or null
        Returns:
        a dynamic proxy class that implements the named interfaces
        Throws:
        MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase is null and a provider-specific URL used to load classes is invalid
        ClassNotFoundException - if a definition for one of the named interfaces could not be found at the specified location, or if creation of the dynamic proxy class failed (such as if Proxy.getProxyClass(ClassLoader,Class[]) would throw an IllegalArgumentException for the given interface list)
      • getClassLoader

        public abstract ClassLoader getClassLoader(String codebase)
                                            throws MalformedURLException
        Provides the implementation for RMIClassLoader.getClassLoader(String). Returns a class loader that loads classes from the given codebase URL path.

        If there is a security manger, its checkPermission method will be invoked with a RuntimePermission("getClassLoader") permission; this could result in a SecurityException. The implementation of this method may also perform further security checks to verify that the calling context has permission to connect to all of the URLs in the codebase URL path.

        Parameters:
        codebase - the list of URLs (space-separated) from which the returned class loader will load classes from, or null
        Returns:
        a class loader that loads classes from the given codebase URL path
        Throws:
        MalformedURLException - if codebase is non-null and contains an invalid URL, or if codebase is null and a provider-specific URL used to identify the class loader is invalid
        SecurityException - if there is a security manager and the invocation of its checkPermission method fails, or if the caller does not have permission to connect to all of the URLs in the codebase URL path
      • getClassAnnotation

        public abstract String getClassAnnotation(Class<?> cl)
        Provides the implementation for RMIClassLoader.getClassAnnotation(Class). Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class.
        Parameters:
        cl - the class to obtain the annotation for
        Returns:
        a string to be used to annotate the given class when it gets marshalled, or null
        Throws:
        NullPointerException - if cl is null

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/rmi/server/rmiclassloaderspi.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut