|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.felix.scrplugin.SCRDescriptorMojo
public class SCRDescriptorMojo
The SCRDescriptorMojo
generates a service descriptor file based on annotations found in the sources.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
SCRDescriptorMojo()
|
Method Summary | |
---|---|
protected void |
addInterfaces(Service service,
JavaTag serviceTag,
JavaClassDescription description)
Recursively add interfaces to the service. |
protected Component |
createComponent(JavaClassDescription description,
JavaTag componentTag,
MetaData metaData)
Create a component for the java class description. |
protected OCD |
doComponent(JavaTag tag,
Component component,
MetaData metaData)
Fill the component object with the information from the tag. |
protected void |
doReference(JavaTag reference,
java.lang.String name,
Component component,
java.lang.String type)
|
protected void |
doServices(JavaTag[] services,
Component component,
JavaClassDescription description)
Process the service annotations |
void |
execute()
|
static boolean |
getBoolean(JavaTag tag,
java.lang.String name,
boolean defaultValue)
|
protected JavaField |
getReferencedField(JavaTag tag,
java.lang.String ref)
|
protected java.lang.String |
getReferenceName(JavaTag reference,
java.lang.String defaultName)
|
protected void |
testReference(java.util.Map references,
JavaTag reference,
java.lang.String defaultName,
boolean isInspectedClass)
Test a newly found reference |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCRDescriptorMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Mojo.execute()
protected Component createComponent(JavaClassDescription description, JavaTag componentTag, MetaData metaData) throws org.apache.maven.plugin.MojoExecutionException
description
-
org.apache.maven.plugin.MojoExecutionException
protected OCD doComponent(JavaTag tag, Component component, MetaData metaData)
tag
- component
- protected void doServices(JavaTag[] services, Component component, JavaClassDescription description) throws org.apache.maven.plugin.MojoExecutionException
services
- component
- description
-
org.apache.maven.plugin.MojoExecutionException
protected void addInterfaces(Service service, JavaTag serviceTag, JavaClassDescription description) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void testReference(java.util.Map references, JavaTag reference, java.lang.String defaultName, boolean isInspectedClass) throws org.apache.maven.plugin.MojoExecutionException
references
- reference
- defaultName
- isInspectedClass
-
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String getReferenceName(JavaTag reference, java.lang.String defaultName) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected JavaField getReferencedField(JavaTag tag, java.lang.String ref) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void doReference(JavaTag reference, java.lang.String name, Component component, java.lang.String type) throws org.apache.maven.plugin.MojoExecutionException
reference
- defaultName
- component
-
org.apache.maven.plugin.MojoExecutionException
public static boolean getBoolean(JavaTag tag, java.lang.String name, boolean defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |