|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.remoting.AbstractInvoker
AbstractInvoker is an abstract handler part that contains common methods between both client and server.
| Field Summary | |
protected ClassByteClassLoader |
classbyteloader
|
protected InvokerLocator |
localServerLocator
|
protected InvokerLocator |
locator
|
protected org.jboss.logging.Logger |
log
|
protected static boolean |
logExtra
|
| Constructor Summary | |
AbstractInvoker(InvokerLocator locator)
|
|
| Method Summary | |
void |
addClass(ClassBytes neededClass)
add a remote class to the local loader to make the class visible to the handler |
byte[] |
getClassBytes(String className)
method is called to retrieve a byte array of a Class for a given class name |
InvokerLocator |
getClientLocator()
Gets the client locator. |
InvokerLocator |
getLocator()
return the locator this Invoker represents |
Class |
loadClass(String className)
load a class, taking into account the remote classes downloaded, if any. |
protected byte[] |
read(InputStream in)
simple utility method for reading bytes from an input stream |
void |
setClassLoader(ClassLoader classloader)
set the classloader to use internally |
void |
setClientLocator(InvokerLocator locator)
This should be set when want to override the default behavior of automatically getting s suitable locator. |
protected Object |
unmarshal(ClassBytes resultBytes,
ClassBytes neededClass)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static boolean logExtra
protected final org.jboss.logging.Logger log
protected ClassByteClassLoader classbyteloader
protected InvokerLocator locator
protected InvokerLocator localServerLocator
| Constructor Detail |
public AbstractInvoker(InvokerLocator locator)
| Method Detail |
public InvokerLocator getLocator()
getLocator in interface Invokerpublic void setClientLocator(InvokerLocator locator)
locator - public InvokerLocator getClientLocator()
public void setClassLoader(ClassLoader classloader)
classloader -
protected byte[] read(InputStream in)
throws IOException
in -
IOExceptionpublic byte[] getClassBytes(String className)
className -
public void addClass(ClassBytes neededClass)
throws IOException
neededClass -
IOException
public Class loadClass(String className)
throws ClassNotFoundException
className -
ClassNotFoundException
protected Object unmarshal(ClassBytes resultBytes,
ClassBytes neededClass)
throws ClassNotFoundException,
StreamCorruptedException,
IOException
ClassNotFoundException
StreamCorruptedException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||