1. /*
  2. * @(#)IORTemplate.java 1.12 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. //Source file: J:/ws/serveractivation/src/share/classes/com.sun.corba.se.internal.ior/IORTemplate.java
  8. package com.sun.corba.se.internal.ior;
  9. import java.util.Iterator ;
  10. import org.omg.IOP.TAG_INTERNET_IOP ;
  11. import com.sun.corba.se.internal.ior.IdentifiableContainerBase ;
  12. /**
  13. * This class is a container of TaggedProfileTemplates.
  14. * @author
  15. */
  16. public class IORTemplate extends IdentifiableContainerBase
  17. {
  18. /** Ensure that this IORTemplate and all of its profiles can not be
  19. * modified. This overrides the method inherited from
  20. * FreezableList through IdentifiableContainerBase.
  21. * Only IIOPProfileTemplates can be frozen at this point.
  22. */
  23. public void makeImmutable()
  24. {
  25. Iterator iter = iteratorById( TAG_INTERNET_IOP.value ) ;
  26. while (iter.hasNext()) {
  27. Object obj = iter.next() ;
  28. if (obj instanceof IIOPProfileTemplate) {
  29. IIOPProfileTemplate temp = (IIOPProfileTemplate)obj ;
  30. temp.makeImmutable() ;
  31. }
  32. }
  33. super.makeImmutable() ;
  34. }
  35. }