|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.fortress.tools.ComponentMetaInfoCollector
public final class ComponentMetaInfoCollector
QDox-based engine to collect all the meta information for the components. This common class is utilized by both Ant and Maven plgins, and possibly others in the future.
Field Summary | |
---|---|
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 Summary | |
---|---|
ComponentMetaInfoCollector(BuildLogger logger)
|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ComponentMetaInfoCollector(BuildLogger logger)
Method Detail |
---|
public void execute() throws java.lang.Exception
BuildException
- if there was a problem collecting the info
java.lang.Exception
private 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.CyclicDependencyException
public void writeServiceList(java.util.Iterator it) throws java.io.IOException
it
- The iterator for the services
java.io.IOException
- if there is a problem writing the fileprivate void collectInfoMetaData()
protected Service getService(java.lang.String type)
type
- The service type name
private void writeServices()
public void setAllClasses(java.util.ArrayList allClasses)
allClasses
- The list of classespublic void setDestDir(java.io.File destDir)
destDir
- The destination directory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |