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