1 /* 2 * @(#)IORFactory.java 1.6 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.ior ; 9 10 import com.sun.corba.se.spi.orb.ORB ; 11 12 /** An IORFactory provides the capability of creating IORs. It contains 13 * some collection of TaggedProfileTemplates, which can be iterated over 14 * for portable interceptors. 15 */ 16 public interface IORFactory extends Writeable, MakeImmutable { 17 /** Construct an IOR containing the given ORB, typeid, and ObjectId. 18 * The same ObjectId will be used for all TaggedProfileTemplates in 19 * the IORFactory. 20 */ 21 IOR makeIOR( ORB orb, String typeid, ObjectId oid ) ; 22 23 /** Return true iff this.makeIOR(orb,typeid,oid).isEquivalent( 24 * other.makeIOR(orb,typeid,oid) for all orb, typeid, and oid. 25 */ 26 boolean isEquivalent( IORFactory other ) ; 27 } 28