Update of /cvsroot/xdoclet/xdoclet2/src/java/xdoclet
In directory sc8-pr-cvs1:/tmp/cvs-serv24608/src/java/xdoclet
Modified Files:
Plugin.java
Log Message:
BeanInfo and Logging improvements
Index: Plugin.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet2/src/java/xdoclet/Plugin.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** Plugin.java 9 Mar 2003 15:45:35 -0000 1.8
--- Plugin.java 12 Mar 2003 23:47:04 -0000 1.9
***************
*** 11,15 ****
import java.io.File;
- import java.io.Serializable;
import java.text.MessageFormat;
--- 11,14 ----
***************
*** 18,28 ****
/**
! * A Plugin is responsible for the generation of a particular kind of file. It
* is also an abstraction of underlying generation mechanisms such as Velocity
! * and Jelly.
*
* <p>A plugin can operate in two different modes, depending on the
* value of the fileName.</p>
*
* <ul>
* <li>If there is a "{0}" in the fileName, one file will be generated for
--- 17,31 ----
/**
! * <p>A Plugin is responsible for the generation of a particular kind of file. It
* is also an abstraction of underlying generation mechanisms such as Velocity
! * and Jelly.</p>
*
* <p>A plugin can operate in two different modes, depending on the
* value of the fileName.</p>
*
+ * <p>A plugin also implements [EMAIL PROTECTED]
java.beans.beancontext.BeanContextChild},
+ * because it might be used in a Java Beans compliant environment such as
+ * an IDE.</p>
+ *
* <ul>
* <li>If there is a "{0}" in the fileName, one file will be generated for
***************
*** 40,44 ****
* @version $Revision$
*/
! public abstract class Plugin implements Serializable {
private final List _dynamicProperties = new ArrayList();
--- 43,47 ----
* @version $Revision$
*/
! public abstract class Plugin extends BeanContextSupportEx {
private final List _dynamicProperties = new ArrayList();
***************
*** 60,66 ****
private File _destination;
- /** The directory where merge files will be retrieved from. */
- private File _mergedir;
-
/** The instance of XDoclet we're under. Set by XDoclet when we're added to it.
*/
private XDoclet _xdoclet;
--- 63,66 ----
***************
*** 114,117 ****
--- 114,120 ----
* an IDE wrapper), make sure the destination is an absolute path.
*
+ * @bean.property
+ * shortDescription="Directory where files will be written."
+ * displayName="Destination Directory"
* @param destination the directory where the plugin will write its files.
*/
***************
*** 120,136 ****
}
- public void setMergedir(String mergedir) {
- _mergedir = new File(mergedir);
- }
-
- /**
- * Gets the mergedir
- *
- * @return the mergedir
- */
- public File getMergedir() {
- return _mergedir;
- }
-
public final Accept createAccept() {
if (_accept != null) {
--- 123,126 ----
***************
*** 245,248 ****
--- 235,241 ----
* the file is generated from.
*
+ * @bean.property
+ * shortDescription="Name of generated file. If multiple files should be
generated, use {0} in the name."
+ * displayName="Generated File"
* @param fileName the name of the generated file(s).
*/
***************
*** 260,263 ****
--- 253,259 ----
* packageSubstitution is used.
*
+ * @bean.property
+ * shortDescription="Package name of generated file(s)."
+ * displayName="Package Name"
* @param packageName the package name.
*/
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel