xdoclet.sdk.xgg.betwixt
Class BeanReaderSerializer

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--xdoclet.sdk.xgg.betwixt.BeanReaderSerializer

public class BeanReaderSerializer
extends Task

This Ant task configures and serialises a BeanReader object to disk. It should be used as a post processor after compiling Java Beans creates by XGGPlugin. The idea is to have a preconfigured BeanReader for a set of Java Beans. Since constructing a BeanReader can be a time consuming process for complex sets of Java Beans, we're doing this when the plugin is packaged. The BetwixtPlugin will then try to deserialise the serialised BeanReader when it starts up, which is a lot faster.

Version:
$Revision: 1.2 $
Author:
Aslak Hellesøy

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
BeanReaderSerializer()
           
 
Method Summary
static BeanReader createBeanReader(File root, String[] pakkage)
           
 void execute()
           
 void setPackage(String pakkage)
          Set the package where the serialised file should be written.
 void setRoot(File root)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanReaderSerializer

public BeanReaderSerializer()
Method Detail

setRoot

public void setRoot(File root)

setPackage

public void setPackage(String pakkage)
Set the package where the serialised file should be written.

Parameters:
pakkage -

execute

public void execute()
Overrides:
execute in class Task

createBeanReader

public static BeanReader createBeanReader(File root,
                                          String[] pakkage)


Copyright © 2000-2003 XDoclet Team. All Rights Reserved.