JavaTM 2 Platform
Standard Edition

org.omg.CORBA
Interface Policy


public interface Policy
extends Object

The Policy interface provides a mechanism for ORBs and Object Services to allow access to certain choices that affect their operation. This information is accessed in a structured manner using interfaces derived from the org.omg.CORBA.Policy interface.


Method Summary
 Policy copy()
          Copies this policy object.
 void destroy()
          Destroys this policy object.
 int policy_type()
          Returns the constant value that corresponds to the type of the policy object.
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

policy_type

public int policy_type()
Returns the constant value that corresponds to the type of the policy object. The values of PolicyTypes are allocated by OMG. New values for PolicyType should be obtained from OMG by sending mail to request@omg.org. In general the constant values that are allocated are defined in conjunction with the definition of the corresponding Policy object.
Returns:
the constant value that corresponds to the type of the policy object

copy

public Policy copy()
Copies this policy object. The copy does not retain any relationships that the policy had with any domain, or object.
Returns:
the copy of the policy object

destroy

public void destroy()
Destroys this policy object. It is the responsibility of the policy object to determine whether it can be destroyed.

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.