org.apache.felix.scrplugin.tags
Class JavaClassDescriptorManager

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.JavaClassDescriptorManager

public class JavaClassDescriptorManager
extends java.lang.Object

JavaClassDescriptorManager.java...


Field Summary
protected  java.lang.ClassLoader classloader
          The classloader used to compile the classes.
protected  java.util.Map componentDescriptions
          The component definitions from other bundles hashed by classname.
protected  java.util.Map javaClassDescriptions
          A cache containing the java class descriptions hashed by classname.
protected  org.apache.maven.plugin.logging.Log log
          The maven log.
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected static java.lang.String SERVICE_COMPONENT
           
protected  com.thoughtworks.qdox.model.JavaSource[] sources
          The sources read by qdox.
 
Constructor Summary
JavaClassDescriptorManager(org.apache.maven.plugin.logging.Log log, org.apache.maven.project.MavenProject project, java.lang.String excludeString)
          Construct a new manager.
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Return the class laoder.
protected  java.lang.ClassLoader getCompileClassLoader(org.apache.maven.project.MavenProject project)
           
protected  java.io.File getFile(org.apache.maven.artifact.Artifact artifact, java.lang.String path)
           
 JavaClassDescription getJavaClassDescription(java.lang.String className)
          Get a java class description for the class.
 org.apache.maven.plugin.logging.Log getLog()
          Return the log.
protected  java.util.jar.Manifest getManifest(org.apache.maven.artifact.Artifact artifact)
           
 org.apache.maven.project.MavenProject getProject()
          Return the project.
 JavaClassDescription[] getSourceDescriptions()
          Return all source descriptions of this project.
protected  Components parseServiceComponentDescriptor(org.apache.maven.artifact.Artifact artifact, java.io.File file)
           
protected  Components readServiceComponentDescriptor(org.apache.maven.artifact.Artifact artifact, java.lang.String entry)
          Read the service component description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_COMPONENT

protected static final java.lang.String SERVICE_COMPONENT
See Also:
Constant Field Values

sources

protected final com.thoughtworks.qdox.model.JavaSource[] sources
The sources read by qdox.


log

protected final org.apache.maven.plugin.logging.Log log
The maven log.


classloader

protected final java.lang.ClassLoader classloader
The classloader used to compile the classes.


javaClassDescriptions

protected final java.util.Map javaClassDescriptions
A cache containing the java class descriptions hashed by classname.


componentDescriptions

protected final java.util.Map componentDescriptions
The component definitions from other bundles hashed by classname.


project

protected final org.apache.maven.project.MavenProject project
The maven project.

Constructor Detail

JavaClassDescriptorManager

public JavaClassDescriptorManager(org.apache.maven.plugin.logging.Log log,
                                  org.apache.maven.project.MavenProject project,
                                  java.lang.String excludeString)
                           throws org.apache.maven.plugin.MojoFailureException,
                                  org.apache.maven.plugin.MojoExecutionException
Construct a new manager.

Parameters:
log -
project -
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Method Detail

getLog

public org.apache.maven.plugin.logging.Log getLog()
Return the log.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Return the class laoder.


getProject

public org.apache.maven.project.MavenProject getProject()
Return the project.


readServiceComponentDescriptor

protected Components readServiceComponentDescriptor(org.apache.maven.artifact.Artifact artifact,
                                                    java.lang.String entry)
                                             throws java.io.IOException,
                                                    org.apache.maven.plugin.MojoExecutionException
Read the service component description.

Parameters:
artifact -
entry -
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException

parseServiceComponentDescriptor

protected Components parseServiceComponentDescriptor(org.apache.maven.artifact.Artifact artifact,
                                                     java.io.File file)
                                              throws java.io.IOException,
                                                     org.apache.maven.plugin.MojoExecutionException
Throws:
java.io.IOException
org.apache.maven.plugin.MojoExecutionException

getCompileClassLoader

protected java.lang.ClassLoader getCompileClassLoader(org.apache.maven.project.MavenProject project)
                                               throws org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoFailureException

getManifest

protected java.util.jar.Manifest getManifest(org.apache.maven.artifact.Artifact artifact)
                                      throws java.io.IOException
Throws:
java.io.IOException

getFile

protected java.io.File getFile(org.apache.maven.artifact.Artifact artifact,
                               java.lang.String path)
                        throws java.io.IOException
Throws:
java.io.IOException

getSourceDescriptions

public JavaClassDescription[] getSourceDescriptions()
                                             throws org.apache.maven.plugin.MojoExecutionException
Return all source descriptions of this project.

Returns:
All contained java class descriptions.
Throws:
org.apache.maven.plugin.MojoExecutionException

getJavaClassDescription

public JavaClassDescription getJavaClassDescription(java.lang.String className)
                                             throws org.apache.maven.plugin.MojoExecutionException
Get a java class description for the class.

Parameters:
className -
Returns:
The java class description.
Throws:
org.apache.maven.plugin.MojoExecutionException