KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > StubContainer


1 package org.sapia.ubik.rmi.server;
2
3 import java.rmi.RemoteException JavaDoc;
4
5
6 /**
7  * Implementations of this interface allow to bind stubs to remote JNDI servers
8  * without the latter having to contain the stubs' interfaces in their classpath.
9  *
10  * @author Yanick Duchesne
11  *
12  * <dl>
13  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
14  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
15  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
16  * </dl>
17  */

18 public interface StubContainer extends java.io.Serializable JavaDoc {
19   /**
20    * Returns the stub that this instance contains.
21    *
22    * @return the stub that this instance contains.
23    * @param a <code>ClassLoader</code>
24    * @throws RemoteException if the stub could not be created.
25    */

26   public Object JavaDoc toStub(ClassLoader JavaDoc loader) throws RemoteException JavaDoc;
27
28   /**
29    * Returns the invocation handler that this instance wraps.
30    *
31    * @return a <code>StubInvocationHandler</code>.
32    */

33   public StubInvocationHandler getStubInvocationHandler();
34 }
35
Popular Tags