Keel 2.1RC2

org.apache.avalon.fortress.tools
Class ComponentMetaInfoCollector

java.lang.Object
  extended byAbstractQdoxTask
      extended byorg.apache.avalon.fortress.tools.ComponentMetaInfoCollector

public final class ComponentMetaInfoCollector
extends AbstractQdoxTask

ANT task to collect all the meta information for the components.

Version:
CVS $Revision: 1.1 $ $Date: 2004/04/02 08:29:44 $
Author:
See Also:
Serialized Form

Field Summary
private  java.io.File m_destDir
          The destination directory for metadata files.
private  java.io.File m_serviceFile
          The service list destination.
private  java.util.Map m_services
          The services to write the meta info for.
private static java.lang.String TAG_COMPONENT
           
 
Constructor Summary
ComponentMetaInfoCollector()
           
 
Method Summary
private  void collectInfoMetaData()
          Output the metadata files.
 void execute()
          Execute generator task.
protected  Service getService(java.lang.String type)
          Get the unique Service object for the specified type.
 void setDestDir(java.io.File destDir)
          Set the destination directory for the meta information.
private  void validate()
          Validate that the parameters are valid.
private  void writeComponents()
          Write the component meta information to the associated files.
 void writeServiceList(java.util.Iterator it)
          Write the service list to the "/service.list" file.
private  void writeServices()
          Collect all the services and write out the implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_services

private final java.util.Map m_services
The services to write the meta info for.


m_destDir

private java.io.File m_destDir
The destination directory for metadata files.


m_serviceFile

private java.io.File m_serviceFile
The service list destination.


TAG_COMPONENT

private static final java.lang.String TAG_COMPONENT
See Also:
Constant Field Values
Constructor Detail

ComponentMetaInfoCollector

public ComponentMetaInfoCollector()
Method Detail

setDestDir

public void setDestDir(java.io.File destDir)
Set the destination directory for the meta information.

Parameters:
destDir - The destination directory

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute generator task.

Throws:
org.apache.tools.ant.BuildException - if there was a problem collecting the info

writeComponents

private void writeComponents()
                      throws java.io.IOException,
                             CyclicDependencyException
Write the component meta information to the associated files.

Throws:
java.io.IOException - if there is a problem.
CyclicDependencyException

writeServiceList

public void writeServiceList(java.util.Iterator it)
                      throws java.io.IOException
Write the service list to the "/service.list" file.

Parameters:
it - The iterator for the services
Throws:
java.io.IOException - if there is a problem writing the file

validate

private void validate()
Validate that the parameters are valid.


collectInfoMetaData

private void collectInfoMetaData()
Output the metadata files.


getService

protected Service getService(java.lang.String type)
Get the unique Service object for the specified type.

Parameters:
type - The service type name
Returns:
the Service object

writeServices

private void writeServices()
Collect all the services and write out the implementations.


Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.