1. /*
  2. * @(#)Policy.java 1.6 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /** The Policy interface provides a mechanism for ORBs and Object Services
  9. * to allow access to certain choices that affect their operation.
  10. * This information is accessed in a structured manner using interfaces
  11. * derived from the org.omg.CORBA.Policy interface.
  12. */
  13. public interface Policy extends org.omg.CORBA.Object
  14. {
  15. /** Returns the constant value that corresponds
  16. * to the type of the policy object. The values of PolicyTypes are allocated by OMG.
  17. * New values for PolicyType should be obtained from OMG by sending mail
  18. * to request@omg.org. In general the constant values that are allocated
  19. * are defined in conjunction with the definition of the corresponding Policy object.
  20. * @return the constant value that corresponds to the type of the policy object
  21. */
  22. public int policy_type();
  23. /** Copies this policy object. The copy does not retain
  24. * any relationships that the policy had with any domain, or object.
  25. * @return the copy of the policy object
  26. */
  27. public org.omg.CORBA.Policy copy();
  28. /** Destroys this policy object. It is the responsibility
  29. * of the policy object to determine whether it can be destroyed.
  30. */
  31. public void destroy();
  32. }