Name

DomainManager

Synopsis

As the basis for management facilities to be added to CORBA, the DomainManager interface represents an object that manages a group of objects (a domain) under a common set of access policies. Policies control access to certain operations over the objects in a given domain. You can access the DomainManagers for an org.omg.CORBA.Object by using its _get_domain_managers() method, which returns an array of DomainManagers, one for each domain of the object. DomainManagers can be hierarchical, in that a domain can contain other DomainManagers. Since the DomainManager is an Object, you can use its _get_domain_managers() method to traverse the manager hierarchy.

The DomainManager has a single method, get_domain_policy(), which allows you to get the policy of a given type for the objects in the domain. The policy is represented by a Policy object. The type of policy is indicated with an integer identifier. The possible values for these types of policies are application-specific. The CORBA Security service, for example, defines its own set of policy types. If the policy type you pass into get_domain_policy() is not supported by the ORB, or if the domain doesn’t define that type of policy, then an org.omg.CORBA.BAD_PARAM system exception is thrown.

                  
public interface DomainManager extends DomainManagerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity ...

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.