FileDocCategorySizeDatePackage
IdentifiableFactoryFinderBase.javaAPI DocJava SE 5 API1688Fri Aug 26 14:54:22 BST 2005com.sun.corba.se.impl.ior

IdentifiableFactoryFinderBase

public abstract class IdentifiableFactoryFinderBase extends Object implements com.sun.corba.se.spi.ior.IdentifiableFactoryFinder

Fields Summary
private com.sun.corba.se.spi.orb.ORB
orb
private Map
map
protected com.sun.corba.se.impl.logging.IORSystemException
wrapper
Constructors Summary
protected IdentifiableFactoryFinderBase(com.sun.corba.se.spi.orb.ORB orb)

	map = new HashMap() ;
	this.orb = orb ;
	wrapper = IORSystemException.get( orb,
	    CORBALogDomains.OA_IOR ) ;
    
Methods Summary
public com.sun.corba.se.spi.ior.Identifiablecreate(int id, org.omg.CORBA_2_3.portable.InputStream is)

	IdentifiableFactory factory = getFactory( id ) ;

	if (factory != null)
	    return factory.create( is ) ;
	else 
	    return handleMissingFactory( id, is ) ;
    
protected com.sun.corba.se.spi.ior.IdentifiableFactorygetFactory(int id)

	Integer ident = new Integer( id ) ;
	IdentifiableFactory factory = (IdentifiableFactory)(map.get( 
	    ident ) ) ;
	return factory ;
    
public abstract com.sun.corba.se.spi.ior.IdentifiablehandleMissingFactory(int id, org.omg.CORBA_2_3.portable.InputStream is)

public voidregisterFactory(com.sun.corba.se.spi.ior.IdentifiableFactory factory)

	Integer ident = new Integer( factory.getId() ) ;
	map.put( ident, factory ) ;