(no commit message)
[utils] / test / enterprise / src / main / java / org / wamblee / support / persistence / JpaCustomizer.java
1 package org.wamblee.support.persistence;
2
3 import java.util.Map;
4 import java.util.ServiceLoader;
5
6 import org.dbunit.dataset.filter.ITableFilterSimple;
7
8 /**
9  * JPA customizer is used to customize properties for a given JPA implementation.
10  * 
11  * Implementations of JpaCustomizer are found using {@link ServiceLoader}. In case
12  * of testing with a specific JPA provider, the customizer library for that JPA provider
13  * must be on the classpath as well. 
14  * 
15  * @author Erik Brakkee
16  */
17 public interface JpaCustomizer {
18
19     void customize(PersistenceUnitDescription aPersistenceUnit, Map<String,String> aJpaProperties);
20     
21     ITableFilterSimple getJpaTables();
22 }