|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.fractal.rmi.stub.Skeleton
public abstract class Skeleton
Super class of the skeleton classes generated by the RmiStubFactory.
A skeleton gives access to a local interface of a Fractal
component. It unmarshalls invocation messages and calls the corresponding
methods on the local interface to which it gives access. Like stubs, a
skeleton gives access to the "functional" interface provided by a server
interface, and also gives access to the methods of the Interface
interface implemented by this server interface.
| Field Summary | |
|---|---|
protected java.lang.Object |
target
The local server interface to which this skeleton gives access. |
| Constructor Summary | |
|---|---|
Skeleton()
Constructs a new Skeleton. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getTarget()
Returns the target object represented by this request session. |
protected void |
handleException(java.lang.Exception e,
ReplySession session)
Handles an exception that happened in this skeleton. |
protected void |
handleInterfaceMethods(UnMarshaller unmarshaller,
ReplySession session,
int methodIndex)
Handles invocations messages corresponding to methods of the Interface interface. |
protected java.lang.Object |
replaceClassName(java.lang.Object o)
|
protected java.lang.Object |
replaceClassValue(java.lang.Object o)
|
abstract void |
send(UnMarshaller unmarshaller,
ReplySession session)
Sends a message (a request) to its recipient. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object target
| Constructor Detail |
|---|
public Skeleton()
Skeleton.
| Method Detail |
|---|
public java.lang.Object getTarget()
getTarget in interface RequestSession
public abstract void send(UnMarshaller unmarshaller,
ReplySession session)
throws JonathanException
closed.
send in interface RequestSessionunmarshaller - the unmarshaller representing the request.session - the session to send the reply.
JonathanException - if something goes wrong.
protected void handleInterfaceMethods(UnMarshaller unmarshaller,
ReplySession session,
int methodIndex)
throws JonathanException
Interface interface.
unmarshaller - the unmarshaller representing the request.session - the session to send the reply.methodIndex - the index of the method to be called.
JonathanException - if something goes wrong.
protected void handleException(java.lang.Exception e,
ReplySession session)
throws JonathanException
e - the exception that happened.session - the session to send the reply.
JonathanException - if the given exception cannot be sent back to the
caller.
protected java.lang.Object replaceClassName(java.lang.Object o)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprotected java.lang.Object replaceClassValue(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||