Online Documentation Server
 ПОИСК
ods.com.ua Web
 КАТЕГОРИИ
Home
Programming
Net technology
Unixes
Security
RFC, HOWTO
Web technology
Data bases
Other docs

 


 ПОДПИСКА

 О КОПИРАЙТАХ
Вся предоставленная на этом сервере информация собрана нами из разных источников. Если Вам кажется, что публикация каких-то документов нарушает чьи-либо авторские права, сообщите нам об этом.




All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.RMIClassLoader

java.lang.Object
   |
   +----java.rmi.server.RMIClassLoader

public class RMIClassLoader
extends Object
The RMIClassLoader class provides static methods for loading classes over the network. Classes can be loaded from either a particular URL, or from the URL specified in the java.rmi.server.codebase system property.


Method Index

 o getSecurityContext(ClassLoader)
Returns the security context of the given class loader
 o loadClass(String)
Load a class from the URL specified in the java.rmi.server.codebase property.
 o loadClass(URL, String)
Load a class from a URL.

Methods

 o loadClass
 public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException
Load a class from the URL specified in the java.rmi.server.codebase property.

Parameters:
name - the name of the class to load
Returns:
the Class object representing the loaded class
Throws: MalformedURLException
The system property java.rmi.server.codebase does not contain a valid URL.
Throws: ClassNotFoundException
A definition for the class could not be found at the codebase URL.
 o loadClass
 public static Class loadClass(URL codebase,
                               String name) throws MalformedURLException, ClassNotFoundException
Load a class from a URL.

Parameters:
codebase - the URL from which to load the class
name - the name of the class to load
Returns:
the Class object representing the loaded class
Throws: MalformedURLException
The codebase paramater was null.
Throws: ClassNotFoundException
A definition for the class could not be found at the specified URL.
 o getSecurityContext
 public static Object getSecurityContext(ClassLoader loader)
Returns the security context of the given class loader

Parameters:
loader - a class loader from which to get the security context
Returns:
the security context (e.g., a URL)

All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature


With any suggestions or questions please feel free to contact us