public class JPADomainList extends AbstractDomainList
Constructor and Description |
---|
JPADomainList() |
Modifier and Type | Method and Description |
---|---|
void |
addDomain(String domain)
Add domain to the service
|
boolean |
containsDomain(String domain)
Return true if the domain exists in the service
|
protected List<String> |
getDomainListInternal()
Return domainList
|
void |
init() |
void |
removeDomain(String domain)
Remove domain from the service
|
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Set the entity manager to use.
|
configure, getDefaultDomain, getDNSServer, getDomains, getLogger, setAutoDetect, setAutoDetectIP, setDNSService, setLog
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
entityManagerFactory
- @PostConstruct public void init()
protected List<String> getDomainListInternal() throws DomainListException
AbstractDomainList
getDomainListInternal
in class AbstractDomainList
DomainListException
AbstractDomainList.getDomainListInternal()
public boolean containsDomain(String domain) throws DomainListException
DomainList
domain
- the domainDomainListException
DomainList.containsDomain(java.lang.String)
public void addDomain(String domain) throws DomainListException
DomainList
domain
- domain to addDomainListException
- If the domain could not be addedDomainList.addDomain(java.lang.String)
public void removeDomain(String domain) throws DomainListException
DomainList
domain
- domain to removeDomainListException
- If the domain could not be removedDomainList.removeDomain(java.lang.String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.