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

java.lang.Object
  extended byorg.objectweb.david.libs.stub_factories.std.JDelegateFactory
All Implemented Interfaces:
DelegateFactory

public class JDelegateFactory
extends java.lang.Object
implements DelegateFactory

Super type of all CorbaStubFactory client stubs.


Constructor Summary
JDelegateFactory(org.omg.CORBA.ORB orb)
           
 
Method Summary
 DavidDelegate newDelegate(org.omg.CORBA.portable.ObjectImpl implementation)
          Creates a new delegate for implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDelegateFactory

public JDelegateFactory(org.omg.CORBA.ORB orb)
Method Detail

newDelegate

public DavidDelegate newDelegate(org.omg.CORBA.portable.ObjectImpl implementation)
Creates a new delegate for implementation. The Delegate type depends on the implementation type: if the implementation is of type DynamicImplementation, a DynamicDelegate is created, otherwise a ServerDelegate is created. If the implementation is already associated with a delegate, the latter is returned.

Specified by:
newDelegate in interface DelegateFactory
Parameters:
implementation - a CORBA Object implementation.
Returns:
the delegate of the provided implementation.