org.apache.geronimo.yoko
Class RMIStubHandlerFactory

java.lang.Object
  extended by org.apache.geronimo.yoko.RMIStubHandlerFactory
All Implemented Interfaces:
org.apache.yoko.rmi.util.stub.StubInitializer

public class RMIStubHandlerFactory
extends Object
implements org.apache.yoko.rmi.util.stub.StubInitializer

Implementation of the yoko StubInitializer class to provide instances of RMIStubHandlers to Stub instances.


Constructor Summary
RMIStubHandlerFactory()
           
 
Method Summary
 Object getStubHandler()
          Provide an RMIStub instance with an RMIStubHandler instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIStubHandlerFactory

public RMIStubHandlerFactory()
Method Detail

getStubHandler

public Object getStubHandler()
Provide an RMIStub instance with an RMIStubHandler instance. This version instantiates a new handler for each stub instance because the handler needs to be initialized with the appropriate execution context.

Specified by:
getStubHandler in interface org.apache.yoko.rmi.util.stub.StubInitializer
Returns:
An instance of StubHandler that hooks the RMI stub invocation into the openejb context.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.