01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: ElementInitializer.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: /**
11: * This interface contains all the methods that a class must implement to be
12: * able to handle the initialization of an element.
13: * <p>The initialization of an element is performed for each element instance
14: * as the first action in a fully setup context. This is handy to perform
15: * initialization logic that's common for the {@link
16: * ElementAware#processElement} method and the dynamic
17: * <code>doSubmissionName</code> methods. More information can be found about
18: * this in the description of the {@link ElementAware} class.
19: *
20: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
21: * @version $Revision: 3634 $
22: * @see ElementSupport#setInitializer
23: * @see ElementAware
24: * @since 1.0
25: */
26: public interface ElementInitializer {
27: /**
28: * This method will be called to perform the actual initialization.
29: *
30: * @since 1.0
31: */
32: public void initialize();
33: }
|