|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.kedwards.swt.exp.ClassExporter
ClassExporter.java
An abstract class to serve bytecodes; concrete subclasses determine where the bytecodes come from.
See http://www.kedwards.com/jini
No warranty expressed or implied; use at your own risk; for educational purposes only.
| Field Summary | |
static ClassExporter |
exporter
Some test harness code. |
| Constructor Summary | |
ClassExporter()
Construct a new class exporter, using any port. |
|
ClassExporter(int port)
Construct a new class exporter on the specified port. |
|
| Method Summary | |
void |
establishCodebase()
This adds the codebase for this exporter to the list of codebases stored under the java.rmi.server.codebase property. |
abstract byte[] |
getByteCodes(java.lang.String path)
Subclasses implement this method to implement whatever semantics they want for fetching the bytecodes of exported classes. |
java.lang.String |
getCodebase()
Return the codebase URL that identifies this exporter. |
void |
run()
Services a socket returned by the server socket |
void |
shutdown()
Shuts down the server socket. |
static void |
testHarness()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static ClassExporter exporter
| Constructor Detail |
public ClassExporter()
throws java.io.IOException
public ClassExporter(int port)
throws java.io.IOException,
java.net.UnknownHostException
port - The port on which to run the exporter. Passing 0 here
indicates that a "random" available port should be used.| Method Detail |
public java.lang.String getCodebase()
throws java.net.UnknownHostException
public void establishCodebase()
throws java.net.UnknownHostException
public void shutdown()
public void run()
run in interface java.lang.Runnable
public abstract byte[] getByteCodes(java.lang.String path)
throws java.lang.ClassNotFoundException
public static void testHarness()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||