KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > protocol > RequestDispatcherRegistry


1 /*
2  * @(#)RequestDispatcherRegistry.java 1.9 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.spi.protocol;
9
10 import java.util.Set JavaDoc;
11
12 import com.sun.corba.se.pept.protocol.ClientRequestDispatcher ;
13 import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher ;
14 import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory ;
15
16 import com.sun.corba.se.spi.oa.ObjectAdapterFactory ;
17
18 /**
19  * This is a registry of all subcontract ID dependent objects. This includes:
20  * LocalClientRequestDispatcherFactory, ClientRequestDispatcher, ServerRequestDispatcher, and
21  * ObjectAdapterFactory.
22  * XXX Should the registerXXX methods take an scid or not? I think we
23  * want to do this so that the same instance can be shared across multiple
24  * scids (and this is already true for ObjectAdapterFactory and LocalClientRequestDispatcherFactory),
25  * but this will require some changes for ClientRequestDispatcher and ServerRequestDispatcher.
26  */

27 public interface RequestDispatcherRegistry {
28     // XXX needs javadocs!
29

30     void registerClientRequestDispatcher( ClientRequestDispatcher csc, int scid) ;
31
32     ClientRequestDispatcher getClientRequestDispatcher( int scid ) ;
33
34     void registerLocalClientRequestDispatcherFactory( LocalClientRequestDispatcherFactory csc, int scid) ;
35
36     LocalClientRequestDispatcherFactory getLocalClientRequestDispatcherFactory( int scid ) ;
37
38     void registerServerRequestDispatcher( CorbaServerRequestDispatcher ssc, int scid) ;
39
40     CorbaServerRequestDispatcher getServerRequestDispatcher(int scid) ;
41
42     void registerServerRequestDispatcher( CorbaServerRequestDispatcher ssc, String JavaDoc name ) ;
43
44     CorbaServerRequestDispatcher getServerRequestDispatcher( String JavaDoc name ) ;
45
46     void registerObjectAdapterFactory( ObjectAdapterFactory oaf, int scid) ;
47
48     ObjectAdapterFactory getObjectAdapterFactory( int scid ) ;
49
50     Set JavaDoc getObjectAdapterFactories() ;
51 }
52
Popular Tags