---
name: "CosEventDomainAdmin_EventDomainFactory"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:19.2.1+dfsg-2+deb9u3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/CosEventDomainAdmin_EventDomainFactory"
---

# CosEventDomainAdmin\_EventDomainFactory(3erl)

This module implements an Event Domain Factory interface, which is used to create new Event Domain instances.

## NAME

CosEventDomainAdmin\_EventDomainFactory - This module implements an Event Domain Factory interface, which  is used to create new Event Domain instances.

## DESCRIPTION

To get access to all definitions include necessary *hrl* files by using:\
 *-include\_lib("cosEventDomain/include/\*.hrl").*

## EXPORTS

**create\_event\_domain(Factory, QoS, Admin) -\> Reply**\

Types:

Factory = #objref\
 QoS = CosNotification::QoSProperties\
 Admin = CosNotification::AdminProperties\
 Reply = {EventDomain, DomainID} \| {'EXCEPTION', #'CosNotification\_UnsupportedQoS'{}} \| {'EXCEPTION', #'CosNotification\_UnsupportedAdmin'{}}\
 EventDomain = #objref\

To create a new EventDomain this operation is used. If it is not possible to support the given *QoSProperties* or *AdminProperties* an exception is raised, which list the properties not supported. For more information see the *cosNotification* user's guide.

**get\_all\_domains(Factory) -\> DomainIDSeq**\

Types:

Factory = #objref\
 DomainIDSeq = \[long()\]\

This function returns a DomainID sequence of all domains associated with the target object.

**get\_event\_domain(Factory, DomainID) -\> Reply**\

Types:

Factory = #objref\
 DomainID = long()\
 Reply = EventDomain \| {'EXCEPTION', #'CosEventDomainAdmin\_DomainNotFound'{}}\
 EventDomain = #objref\

This operation returns the EventDomain object associated with the given DomainID. If no such binding exists an exception is raised.
