01: package com.sun.rave.designtime.ext;
02:
03: import com.sun.rave.designtime.DesignBean;
04: import com.sun.rave.designtime.DesignContext;
05:
06: /**
07: * Implementations of this factory are used to create a statement text used
08: * to initialize the instance of a bean. The statement should be syntacticaly
09: * correct.
10: */
11: public interface InstanceInitializationStatementFactory {
12: /**
13: * This creates and returns a statement text used to initialize the instance
14: * of the bean in the source. The name returned by <code>getInstanceName()</code>
15: * method should be used in place of the instance name in the initialization
16: * statement.
17: */
18: public String getInitializationStatement(
19: DesignContext designContext, DesignBean designBean);
20: }
|