View Javadoc

1   /*
2    * Copyright 2004-2005 Emmanouil Batsis
3    * 
4    * Licensed under the GNU General Public License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.gnu.org/licenses/gpl.txt
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }