public class DefaultDomainManager extends Object implements DomainRepository, DomainManager
Domain instances created on the container.| Constructor and Description |
|---|
DefaultDomainManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(Domain domain)
Adds a new domain
|
boolean |
contains(String name)
Checks if exists a domain with the given name.
|
boolean |
containsCompatible(BundleDescriptor descriptor)
Checks if exists a domain compatible with the given bundle descriptor.
|
Domain |
getCompatibleDomain(BundleDescriptor wantedDescriptor)
Gets a domain compatible with the given bundle descriptor.
|
Domain |
getDomain(String domainName)
Gets the domain matching given name.
|
static boolean |
isCompatibleBundle(BundleDescriptor available,
BundleDescriptor expected)
Determines if a bundle descriptor is compatible with another one.
|
void |
removeDomain(Domain domain)
Removes a domain
|
public void addDomain(Domain domain)
DomainManageraddDomain in interface DomainManagerdomain - domain to add.public void removeDomain(Domain domain)
DomainManagerremoveDomain in interface DomainManagerdomain - domain to remove.public Domain getDomain(String domainName) throws DomainNotFoundException
DomainRepositorygetDomain in interface DomainRepositorydomainName - domain name to find. Non empty.Domain corresponding to the given name or null is no such domain exists.DomainNotFoundException - if didn't find any compatible domain.public boolean contains(String name)
DomainRepositorycontains in interface DomainRepositoryname - The name of the domain to search.public Domain getCompatibleDomain(BundleDescriptor wantedDescriptor) throws DomainNotFoundException, AmbiguousDomainReferenceException
DomainRepositoryBundleDescriptorUtils.isCompatibleVersion(String, String) for more information).getCompatibleDomain in interface DomainRepositorywantedDescriptor - Descriptor of the domain to find.Domain corresponding to the given descriptor or null is no such domain exists.DomainNotFoundException - if didn't find any compatible domain.AmbiguousDomainReferenceException - if multiple compatible domains were found for given descriptor.public boolean containsCompatible(BundleDescriptor descriptor)
DomainRepositoryBundleDescriptorUtils.isCompatibleVersion(String, String) for more information).containsCompatible in interface DomainRepositorydescriptor - Descriptor of the domain to find.public static boolean isCompatibleBundle(BundleDescriptor available, BundleDescriptor expected)
available - bundle descriptor that is available to use.expected - bundle descriptor that is expected.Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.