1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.geekologue.md4j.tools.ant;
18
19 import java.io.File;
20 import java.util.Collection;
21 import java.util.Map;
22 import org.apache.tools.ant.BuildException;
23 import org.apache.tools.ant.util.FileNameMapper;
24
25 /***
26 * Top level implementations (meaning the ones called by the MD4J task itself)
27 * of this interface must also provide a default (i.e. no arguments)
28 * constructor.
29 *
30 * @author manos
31 *
32 */
33 public interface HibernateMappingProcessorLiason {
34 public abstract void init(Map context);
35
36 /***
37 *
38 * @param contextDir
39 * @param xmlFile
40 * @param destinationDir
41 * @throws BuildException
42 */
43 public void process(File contextDir, String xmlFile) throws BuildException;
44 }