org.objectweb.david.libs.stub_factories.std
Class Skeleton

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.objectweb.david.libs.stub_factories.std.Skeleton
All Implemented Interfaces:
Constants, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object

public abstract class Skeleton
extends org.omg.CORBA.portable.ObjectImpl
implements Constants, org.omg.CORBA.portable.InvokeHandler

Base class for Jonathan skeletons.


Field Summary
 
Fields inherited from interface org.objectweb.david.libs.stub_factories.std.Constants
_bad_operation, _corba_object_id, _corba_prefix, _just_corba_object
 
Constructor Summary
Skeleton()
          Constructs a new skeleton.
 
Method Summary
protected  int _getOperationSwitchKey(java.lang.String op_name)
          This method must be redefined by subclasses.
 org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.ResponseHandler handler)
          This method must be redefined by subclasses.
abstract  void _setContinuation(java.lang.Object continuation)
          Sets this object's continuation, i.e., the servant bearing the service methods.
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Skeleton

public Skeleton()
Constructs a new skeleton.

Method Detail

_setContinuation

public abstract void _setContinuation(java.lang.Object continuation)
Sets this object's continuation, i.e., the servant bearing the service methods.

Parameters:
continuation - the servant bearing the service methods.

_invoke

public org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method,
                                                   org.omg.CORBA.portable.InputStream input,
                                                   org.omg.CORBA.portable.ResponseHandler handler)
                                            throws org.omg.CORBA.BAD_OPERATION
This method must be redefined by subclasses.

Specified by:
_invoke in interface org.omg.CORBA.portable.InvokeHandler
Parameters:
method - a method name
input - a CORBA input stream
handler - a response handler
Returns:
a reply message
Throws:
org.omg.CORBA.BAD_OPERATION - always thrown.

_getOperationSwitchKey

protected int _getOperationSwitchKey(java.lang.String op_name)
                              throws org.omg.CORBA.BAD_OPERATION
This method must be redefined by subclasses.

Parameters:
op_name - an method name.
Returns:
a unique integer key for op_name.
Throws:
org.omg.CORBA.BAD_OPERATION - always thrown.