org.apache.felix.scrplugin.ant
Class AntJavaClassDescriptorManager

java.lang.Object
  extended by org.apache.felix.scrplugin.JavaClassDescriptorManager
      extended by org.apache.felix.scrplugin.ant.AntJavaClassDescriptorManager

public class AntJavaClassDescriptorManager
extends JavaClassDescriptorManager


Field Summary
 
Fields inherited from class org.apache.felix.scrplugin.JavaClassDescriptorManager
log
 
Constructor Summary
AntJavaClassDescriptorManager(Log log, ClassLoader classLoader, org.apache.tools.ant.types.FileSet sourceFiles, File classesDirectory, org.apache.tools.ant.types.Path classPath, String[] annotationTagProviders, boolean parseJavadocs, boolean processAnnotations)
           
 
Method Summary
protected  List<File> getDependencies()
          Returns a list of files denoting dependencies of the module for which descriptors are to be generated.
 String getOutputDirectory()
          Returns the absolute filesystem path to the directory where the classes compiled from the java source files (see JavaClassDescriptorManager.getSources()) have been placed.
protected  Iterator<File> getSourceFiles()
          Returns an iterator of paths to directories providing Java source files to be parsed.
 
Methods inherited from class org.apache.felix.scrplugin.JavaClassDescriptorManager
getAnnotationTagProviderManager, getClassLoader, getComponentDescriptors, getJavaClassDescription, getLog, getSourceDescriptions, getSources, isParseJavadocs, isProcessAnnotations, parseServiceComponentDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntJavaClassDescriptorManager

public AntJavaClassDescriptorManager(Log log,
                                     ClassLoader classLoader,
                                     org.apache.tools.ant.types.FileSet sourceFiles,
                                     File classesDirectory,
                                     org.apache.tools.ant.types.Path classPath,
                                     String[] annotationTagProviders,
                                     boolean parseJavadocs,
                                     boolean processAnnotations)
                              throws SCRDescriptorFailureException
Throws:
SCRDescriptorFailureException
Method Detail

getSourceFiles

protected Iterator<File> getSourceFiles()
Description copied from class: JavaClassDescriptorManager
Returns an iterator of paths to directories providing Java source files to be parsed.

This method is called by the default JavaClassDescriptorManager.getSources() implementation to return the root directories for the Java files to be parsed. This default implementation returns an empty iterator. Implementations of this class not overwriting the JavaClassDescriptorManager.getSources() method should overwrite this method by providing the concrete source locations.

Overrides:
getSourceFiles in class JavaClassDescriptorManager
Returns:
An iterator of Java source locations.

getDependencies

protected List<File> getDependencies()
Description copied from class: JavaClassDescriptorManager
Returns a list of files denoting dependencies of the module for which descriptors are to be generated. The returned dependencies are expected to be bundles which may (or may not) contain Service Component descriptors (or internal descriptors in the case of abstract components not listed in the "official" descriptors).

This method is called by the JavaClassDescriptorManager.getComponentDescriptors() method in this class to get the list of bundles from where base component descriptors are to be extracted.

Extensions of this class not overwriting the JavaClassDescriptorManager.getComponentDescriptors() method should overwrite this method if they wish to provide such base component descriptors.

Overrides:
getDependencies in class JavaClassDescriptorManager
Returns:

getOutputDirectory

public String getOutputDirectory()
Description copied from class: JavaClassDescriptorManager
Returns the absolute filesystem path to the directory where the classes compiled from the java source files (see JavaClassDescriptorManager.getSources()) have been placed.

This method is called to find the class files to which bind and unbind methods are to be added.

Specified by:
getOutputDirectory in class JavaClassDescriptorManager


Copyright © 2011 Apache Software Foundation. All Rights Reserved.