java.lang.Objectjava.rmi.server.RMIClassLoaderSpi
RMIClassLoaderSpi is the service provider interface for
RMIClassLoader.
In particular, an RMIClassLoaderSpi instance provides an
implementation of the following static methods of
RMIClassLoader:
RMIClassLoader.loadClass(URL,String)
RMIClassLoader.loadClass(String,String)
RMIClassLoader.loadClass(String,String,ClassLoader)
RMIClassLoader.loadProxyClass(String,String[],ClassLoader)
RMIClassLoader.getClassLoader(String)
RMIClassLoader.getClassAnnotation(Class)
RMIClassLoader for a description
of how a provider instance is chosen.
RMIClassLoader| Constructor Summary | |
|---|---|
RMIClassLoaderSpi()
|
|
| Method Summary | |
|---|---|
abstract String |
getClassAnnotation(Class<?> cl)
Provides the implementation for RMIClassLoader.getClassAnnotation(Class). |
abstract ClassLoader |
getClassLoader(String codebase)
Provides the implementation for RMIClassLoader.getClassLoader(String). |
abstract Class<?> |
loadClass(String codebase,
String name,
ClassLoader defaultLoader)
Provides the implementation for RMIClassLoader.loadClass(URL,String),
RMIClassLoader.loadClass(String,String), and
RMIClassLoader.loadClass(String,String,ClassLoader). |
abstract Class<?> |
loadProxyClass(String codebase,
String[] interfaces,
ClassLoader defaultLoader)
Provides the implementation for RMIClassLoader.loadProxyClass(String,String[],ClassLoader). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RMIClassLoaderSpi()
| Method Detail |
|---|
public abstract Class<?> loadClass(String codebase, String name, ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException
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.
codebase - the list of URLs (separated by spaces) to load
the class from, or nullname - the name of the class to loaddefaultLoader - additional contextual class loader
to use, or null
Class object representing the loaded class
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 locationpublic abstract Class<?> loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException
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.
codebase - the list of URLs (space-separated) to load
classes from, or nullinterfaces - the names of the interfaces for the proxy class
to implementdefaultLoader - additional contextual class loader
to use, or null
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)public abstract ClassLoader getClassLoader(String codebase) throws MalformedURLException
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.
codebase - the list of URLs (space-separated) from which
the returned class loader will load classes from, or null
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 pathpublic abstract String getClassAnnotation(Class<?> cl)
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.
cl - the class to obtain the annotation for
null
NullPointerException - if cl is nullCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)