src/definition/domain/container.js
function getDomain(domainName) {
    if (!isString(domainName)) {
        throw new InvalidException('domaiName should extists and be a string', domainName);
    }
    if (!domainsMap.has(domainName)) {
        console.warn(`You are trying to access a non existing domain: ${domainName}`);
        return Immutable.Map({});
    }
    return domainsMap.get(domainName);
}
function getDomain(domainName) {
    if (!isString(domainName)) {
        throw new InvalidException('domaiName should extists and be a string', domainName);
    }
    if (!domainsMap.has(domainName)) {
        console.warn(`You are trying to access a non existing domain: ${domainName}`);
        return Immutable.Map({});
    }
    return domainsMap.get(domainName);
}
function getDomain ( domainName ) { if ( ! isString ( domainName ) ) { throw new InvalidException ( 'domaiName should extists and be a string' , domainName ) ; } if ( ! domainsMap . has ( domainName ) ) { console . warn ( ` ${ domainName } ` ) ; return Immutable . Map ( { } ) ; } return domainsMap . get ( domainName ) ; }
Get a domain given a name.
@param {string} domainName - name of the domain.
@return {object} - The domain object.
Get a domain given a name .