FileDocCategorySizeDatePackage
ORBInitRefResolverImpl.javaAPI DocJava SE 5 API1012Fri Aug 26 14:54:32 BST 2005com.sun.corba.se.impl.resolver

ORBInitRefResolverImpl

public class ORBInitRefResolverImpl extends Object implements com.sun.corba.se.spi.resolver.Resolver

Fields Summary
com.sun.corba.se.spi.orb.Operation
urlHandler
Map
orbInitRefTable
Constructors Summary
public ORBInitRefResolverImpl(com.sun.corba.se.spi.orb.Operation urlHandler, com.sun.corba.se.spi.orb.StringPair[] initRefs)

	this.urlHandler = urlHandler ;
	orbInitRefTable = new java.util.HashMap() ;

       	for( int i = 0; i < initRefs.length ; i++ ) {
	    StringPair sp = initRefs[i] ;
	    orbInitRefTable.put( sp.getFirst(), sp.getSecond() ) ;
	}
    
Methods Summary
public java.util.Setlist()

	return orbInitRefTable.keySet() ;
    
public org.omg.CORBA.Objectresolve(java.lang.String ident)

	String url = (String)orbInitRefTable.get( ident ) ;
	if (url == null)
	    return null ;

	org.omg.CORBA.Object result = 
	    (org.omg.CORBA.Object)urlHandler.operate( url ) ;
	return result ;