View Javadoc

1   /*
2    * UML2MMBase module.
3    *
4    * The contents of this file are subject to the Mozilla Public License
5    * Version 1.0 (the "License"); you may not use this file except in
6    * compliance with the License. You may obtain a copy of the License at
7    * http://www.mozilla.org/MPL/
8    *
9    * Software distributed under the License is distributed on an "AS IS"
10   * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
11   * License for the specific language governing rights and limitations
12   * under the License.
13   */
14  
15  package com.finalist.mmbase.modules;
16  
17  /***
18   * The mmbase package interfaces has 3 methods that will be called by the MMbase package handler in the following order:
19   * -init
20   * -process
21   * -destroy
22   *
23   * @author Rudie Ekkelenkamp
24   * @version $Revision: 1.2 $, $Date: 2005/07/12 10:32:00 $
25   */
26  public interface MMBasePackageGenerator {
27  
28      String DEFAULT_MMBASE_PACKAGE_GENERATOR = "com.finalist.mmbase.modules.DefaultMMBasePackageGenerator";
29  
30      /***
31       * Initialize the Package generation.
32       * @param config configuration settings.
33       */
34      void init(MMBasePackageConfiguration config);
35  
36      /***
37       * Do the actuall configuration.
38       * @param config  configuration settings.
39       */
40      void process(MMBasePackageConfiguration config);
41  
42      /***
43       * Destroy resources that were setup during initialization or processing.
44       * @param config configuration settings.
45       */
46      void destroy(MMBasePackageConfiguration config);
47  }