public final class ComponentMetaInfoCollector
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList |
m_allClasses
The list of classes to extract metadata from
|
private java.io.File |
m_destDir
The destination directory for metadata files.
|
protected BuildLogger |
m_logger
To log messages - varies by build system used
|
private java.util.Map |
m_services
The services to write the meta info for.
|
private static java.lang.String |
TAG_COMPONENT |
| Constructor and Description |
|---|
ComponentMetaInfoCollector(BuildLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
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 |
setAllClasses(java.util.ArrayList allClasses)
Set the list of classes to extract metadata from
|
void |
setDestDir(java.io.File destDir)
Set the destination directory for the meta information.
|
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.
|
protected BuildLogger m_logger
protected java.util.ArrayList m_allClasses
private java.io.File m_destDir
private final java.util.Map m_services
private static final java.lang.String TAG_COMPONENT
public ComponentMetaInfoCollector(BuildLogger logger)
public void execute()
throws java.lang.Exception
BuildException - if there was a problem collecting the infojava.lang.Exceptionprivate void writeComponents()
throws java.io.IOException,
org.apache.avalon.fortress.util.dag.CyclicDependencyException
java.io.IOException - if there is a problem.org.apache.avalon.fortress.util.dag.CyclicDependencyExceptionpublic void writeServiceList(java.util.Iterator it)
throws java.io.IOException
it - The iterator for the servicesjava.io.IOException - if there is a problem writing the fileprivate void collectInfoMetaData()
protected Service getService(java.lang.String type)
type - The service type nameprivate void writeServices()
public void setAllClasses(java.util.ArrayList allClasses)
allClasses - The list of classespublic void setDestDir(java.io.File destDir)
destDir - The destination directory