public abstract class OptSkeleton extends Object implements org.objectweb.jonathan.protocols.api.RequestSession
request session
and represents the target object of an invocation.Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
class_loader
the class loader use to create this skeleton - may be used to load classes needed by the skeleton.
|
protected Object |
target
The target object held by this skeleton.
|
Modifier | Constructor and Description |
---|---|
protected |
OptSkeleton()
Creates an optimised Jeremie skeleton with itself as the target.
|
protected |
OptSkeleton(Object target)
Creates an optimised Jeremie skeleton with the given target.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Tests for skeleton equality, defined as object equality (equals) of
the target objects.
|
Object |
getTarget()
Returns the target object represented by this skeleton.
|
int |
hashCode()
Returns a hashcode for this skeleton, defined as the hashcode of its
target object.
|
abstract void |
send(org.objectweb.jonathan.presentation.api.UnMarshaller unmarshaller,
org.objectweb.jonathan.protocols.api.ReplySession session)
Sends an invocation to the target object represented by this skeleton.
|
protected transient Object target
protected transient ClassLoader class_loader
protected OptSkeleton()
protected OptSkeleton(Object target)
public abstract void send(org.objectweb.jonathan.presentation.api.UnMarshaller unmarshaller, org.objectweb.jonathan.protocols.api.ReplySession session) throws org.objectweb.jonathan.apis.kernel.JonathanException
A reply session is sent to the target object along with the invocation (represented by an unmarshaller). The target object must use the reply session to send back a reply.
send
in interface org.objectweb.jonathan.protocols.api.RequestSession
unmarshaller
- an unmarshaller representing the invocation;session
- a reply session to which the result of the invocation
is to be sent;org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.public Object getTarget()
getTarget
in interface org.objectweb.jonathan.protocols.api.RequestSession
public boolean equals(Object other)