KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > resolver > SplitLocalResolverImpl


1 /*
2  * @(#)SplitLocalResolverImpl.java 1.2 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.impl.resolver ;
9
10 import com.sun.corba.se.spi.orbutil.closure.Closure ;
11
12 import com.sun.corba.se.spi.resolver.Resolver ;
13 import com.sun.corba.se.spi.resolver.LocalResolver ;
14
15 public class SplitLocalResolverImpl implements LocalResolver
16 {
17     private Resolver resolver ;
18     private LocalResolver localResolver ;
19
20     public SplitLocalResolverImpl( Resolver resolver,
21     LocalResolver localResolver )
22     {
23     this.resolver = resolver ;
24     this.localResolver = localResolver ;
25     }
26
27     public void register( String JavaDoc name, Closure closure )
28     {
29     localResolver.register( name, closure ) ;
30     }
31
32     public org.omg.CORBA.Object JavaDoc resolve( String JavaDoc name )
33     {
34     return resolver.resolve( name ) ;
35     }
36
37     public java.util.Set JavaDoc list()
38     {
39     return resolver.list() ;
40     }
41 }
42
43
Popular Tags