| java.net.URLClassLoader org.ow2.easybeans.component.smartclient.client.AskingClassLoader
AskingClassLoader | public class AskingClassLoader extends URLClassLoader (Code) | | ClassLoader that is used and that ask the EasyBeans remote server.
author: Florent Benoit |
Inner Class :static class ShutdownHook extends Thread | |
Constructor Summary | |
public | AskingClassLoader(String host, int portNumber) Creates a new classloader by using an empty URL. |
Method Summary | |
protected synchronized Class> | findClass(String name) | public synchronized URL | findResource(String name) Finds the resource with the specified name on the URL search path. | public String | getProviderURL() Ask and return the remote PROVIDER_URL in order to connect with RMI. | public ByteBuffer | sendRequest(Message message, SocketChannel channel) Sends the given message on the given channel.
Parameters: message - the message to send Parameters: channel - the channel used to send the message. |
AskingClassLoader | public AskingClassLoader(String host, int portNumber)(Code) | | Creates a new classloader by using an empty URL.
Parameters: host - the remote host to connect. Parameters: portNumber - the port number for the protocol. |
findClass | protected synchronized Class> findClass(String name) throws ClassNotFoundException(Code) | | 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
Parameters: name - the name of the class the resulting class exception: ClassNotFoundException - if the class could not be found |
findResource | public synchronized URL findResource(String name)(Code) | | Finds the resource with the specified name on the URL search path.
If resource is not found locally, search on the remote side.
Parameters: name - the name of the resource a URL for the resource, or null ifthe resource could not be found. |
getProviderURL | public String getProviderURL()(Code) | | Ask and return the remote PROVIDER_URL in order to connect with RMI.
a string with the PROVIDER_URL value. |
sendRequest | public ByteBuffer sendRequest(Message message, SocketChannel channel)(Code) | | Sends the given message on the given channel.
Parameters: message - the message to send Parameters: channel - the channel used to send the message. the bytebuffer containing the answer (to analyze) |
|
|