|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.rmi.stub.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 Object |
target
The local server interface to which this skeleton gives access. |
Constructor Summary | |
Skeleton()
Constructs a new Skeleton . |
Method Summary | |
Object |
getTarget()
Returns the target object represented by this request session. |
protected void |
handleException(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 Object |
replaceClassName(Object o)
|
protected Object |
replaceClassValue(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 Object target
Constructor Detail |
public Skeleton()
Skeleton
.
Method Detail |
public Object getTarget()
getTarget
in interface RequestSession
public abstract void send(UnMarshaller unmarshaller, ReplySession session) throws JonathanException
closed
.
send
in interface RequestSession
unmarshaller
- 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(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 Object replaceClassName(Object o) throws ClassNotFoundException
ClassNotFoundException
protected Object replaceClassValue(Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |