KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > copyobject > CopierManager


1 /*
2  * @(#)CopierManager.java 1.5 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.copyobject ;
9
10 /** Manager of ObjectCopier implementations used to support javax.rmi.CORBA.Util.copyObject(s).
11  * This provides simple methods for registering all supported ObjectCopier factories.
12  * A default copier is also supported, for use in contexts where no specific copier id
13  * is available.
14  */

15 public interface CopierManager
16 {
17     /** Set the Id of the copier to use if no other copier has been set.
18      */

19     void setDefaultId( int id ) ;
20
21     /** Return the copier for the default copier id. Throws a BAD_PARAM exception
22      * if no default copier id has been set.
23      */

24     int getDefaultId() ;
25
26     ObjectCopierFactory getObjectCopierFactory( int id ) ;
27
28     ObjectCopierFactory getDefaultObjectCopierFactory() ;
29
30     /** Register an ObjectCopierFactory under a particular id. This can be retrieved
31      * later by getObjectCopierFactory.
32      */

33     void registerObjectCopierFactory( ObjectCopierFactory factory, int id ) ;
34 }
35
Popular Tags