org.apache.james.domainlist.jpa
Class JPADomainList
java.lang.Object
org.apache.james.domainlist.lib.AbstractDomainList
org.apache.james.domainlist.jpa.JPADomainList
- All Implemented Interfaces:
- DomainList, Configurable, LogEnabled
public class JPADomainList
- extends AbstractDomainList
JPA implementation of the DomainList.
This implementation is compatible with the JDBCDomainList, meaning same
database schema can be reused.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPADomainList
public JPADomainList()
setEntityManagerFactory
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
- Set the entity manager to use.
- Parameters:
entityManagerFactory -
init
@PostConstruct
public void init()
getDomainListInternal
protected List<String> getDomainListInternal()
throws DomainListException
- Specified by:
getDomainListInternal in class AbstractDomainList
- Throws:
DomainListException- See Also:
AbstractDomainList.getDomainListInternal()
containsDomain
public boolean containsDomain(String domain)
throws DomainListException
- Throws:
DomainListException- See Also:
DomainList.containsDomain(java.lang.String)
addDomain
public void addDomain(String domain)
throws DomainListException
- Throws:
DomainListException- See Also:
DomainList.addDomain(java.lang.String)
removeDomain
public void removeDomain(String domain)
throws DomainListException
- Throws:
DomainListException- See Also:
DomainList.removeDomain(java.lang.String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.