org.objectweb.david.libs.stub_factories.std
Class ServerDelegate
java.lang.Object
org.omg.CORBA.portable.Delegate
org.omg.CORBA_2_3.portable.Delegate
org.objectweb.david.apis.binding.DavidDelegate
org.objectweb.david.libs.stub_factories.std.JDelegate
org.objectweb.david.libs.stub_factories.std.ServerDelegate
- All Implemented Interfaces:
- Constants, Reference, RequestSession
- public class ServerDelegate
- extends JDelegate
- implements RequestSession
Class for server-side delegates.
Method Summary |
java.lang.Object |
getTarget()
Returns the object implementation provided at creation time. |
boolean |
is_local(org.omg.CORBA.Object self)
Returns true if the object is local. |
org.omg.CORBA.ORB |
orb(org.omg.CORBA.Object obj)
Returns an ORB implementation (the singleton ORB in our case). |
void |
send(UnMarshaller message,
ReplySession session)
Sends a message up to a service implementation (RequestSession method) |
org.omg.CORBA.portable.ServantObject |
servant_preinvoke(org.omg.CORBA.Object self,
java.lang.String operation,
java.lang.Class expectedType)
|
Methods inherited from class org.objectweb.david.libs.stub_factories.std.JDelegate |
create_request, create_request, duplicate, finalize, get_interface, getIdentifiers, hash, is_a, is_equivalent, non_existent, release, request, setIdentifiers |
Methods inherited from class org.omg.CORBA_2_3.portable.Delegate |
get_codebase |
Methods inherited from class org.omg.CORBA.portable.Delegate |
equals, get_domain_managers, get_interface_def, get_policy, hashCode, invoke, releaseReply, request, servant_postinvoke, set_policy_override, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTarget
public java.lang.Object getTarget()
- Returns the object implementation provided at creation time.
- Specified by:
getTarget
in interface RequestSession
- Returns:
- the object implementation provided at creation time.
servant_preinvoke
public org.omg.CORBA.portable.ServantObject servant_preinvoke(org.omg.CORBA.Object self,
java.lang.String operation,
java.lang.Class expectedType)
is_local
public boolean is_local(org.omg.CORBA.Object self)
- Returns true if the object is local.
- Parameters:
self
- the target implementation
- Returns:
- true.
orb
public org.omg.CORBA.ORB orb(org.omg.CORBA.Object obj)
- Returns an ORB implementation (the singleton ORB in our case).
- Parameters:
obj
- unused.
- Returns:
- an ORB implementation (the singleton ORB in our case).
send
public void send(UnMarshaller message,
ReplySession session)
throws org.objectweb.jonathan.apis.kernel.JonathanException
- Sends a message up to a service implementation (RequestSession method)
- Specified by:
send
in interface RequestSession
- Parameters:
message
- a request messagesession
- the request session
- Throws:
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.