|
||||||||||
| 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.carol.cmi.smart.client.SmartClassLoader
public class SmartClassLoader
ClassLoader that is used and that asks the remote server.
| Constructor Summary | |
|---|---|
SmartClassLoader(java.lang.String host,
int port)
Creates a new classloader. |
|
| 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. |
java.net.URL |
findResource(java.lang.String name)
Finds the resource with the specified name on the URL search path. |
java.util.List<java.lang.String> |
getProviderURLs(java.lang.String protocol)
Get the list of available provider urls with the given protocol. |
java.lang.String |
getWrappedFactoryName(java.lang.String protocol)
Get the factory name with the given protocol. |
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 SmartClassLoader(java.lang.String host,
int port)
host - The given host.port - The given port number.| Method Detail |
|---|
public java.util.List<java.lang.String> getProviderURLs(java.lang.String protocol)
protocol - The given protocol used in the client side.
public java.lang.String getWrappedFactoryName(java.lang.String protocol)
protocol - The protocol used in the client side.
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.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 | |||||||||