|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.ow2.easybeans.component.smartclient.client.AskingClassLoader
public class AskingClassLoader
ClassLoader that is used and that ask the EasyBeans remote server.
| Constructor Summary | |
|---|---|
AskingClassLoader(java.lang.String host,
int portNumber)
Creates a new classloader by using an empty URL. |
|
| Method Summary | |
|---|---|
protected java.lang.Class<?> |
findClass(java.lang.String name)
Finds and loads the class with the specified name from the URL search path. If the super classloader doesn't find the class, it ask the remote server to download the class |
java.net.URL |
findResource(java.lang.String name)
Finds the resource with the specified name on the URL search path. |
java.lang.String |
getProviderURL()
Ask and return the remote PROVIDER_URL in order to connect with RMI. |
java.nio.ByteBuffer |
sendRequest(Message message,
java.nio.channels.SocketChannel channel)
Sends the given message on the given channel. |
| Methods inherited from class java.net.URLClassLoader |
|---|
addURL, definePackage, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AskingClassLoader(java.lang.String host,
int portNumber)
host - the remote host to connect.portNumber - the port number for the protocol.| Method Detail |
|---|
public java.nio.ByteBuffer sendRequest(Message message,
java.nio.channels.SocketChannel channel)
message - the message to sendchannel - the channel used to send the message.
protected java.lang.Class<?> findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.net.URLClassLoadername - the name of the class
java.lang.ClassNotFoundException - if the class could not be foundpublic java.lang.String getProviderURL()
public java.net.URL findResource(java.lang.String name)
findResource in class java.net.URLClassLoadername - the name of the resource
URL for the resource, or null if
the resource could not be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||