public class SCRDescriptorGenerator extends Object
SCRDescriptorGenerator
class does the hard work of
generating the SCR descriptors. This class is being instantiated and
configured by clients and the execute()
method called to generate
the descriptor files.
When using this class carefully consider calling all setter methods to properly configure the generator. All setter method document, which default value is assumed for the respective property if the setter is not called.
Instances of this class are not thread save and should not be reused.
Constructor and Description |
---|
SCRDescriptorGenerator(Log logger)
Create an instance of this generator using the given
Log instance
of logging. |
Modifier and Type | Method and Description |
---|---|
Result |
execute()
Actually generates the Declarative Services and Metatype descriptors
scanning the java sources provided by the
setProject(Project) |
void |
setOptions(Options p)
Set the options.
|
void |
setProject(Project p)
Set the project.
|
public void setProject(Project p)
public void setOptions(Options p)
public Result execute() throws SCRDescriptorException, SCRDescriptorFailureException
setProject(Project)
SCRDescriptorException
SCRDescriptorFailureException
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.