public class Options
extends java.lang.Object
SCRDescriptorGenerator| Modifier and Type | Field and Description |
|---|---|
private boolean |
generateAccessors
Flag for generating accessor methods.
|
private boolean |
incremental
Is this an incremental build?
|
private java.io.File |
outputDirectory
The output directory for the generated files.
|
private static java.lang.String |
PARENT_NAME |
private java.util.Map<java.lang.String,java.lang.String> |
properties
Map of global properties.
|
private boolean |
skipVolatileCheck
Skip volatile check.
|
private SpecVersion |
specVersion
The requested spec version.
|
private boolean |
strictMode
Flag for strict mode.
|
| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getComponentDescriptorDirectory()
Convenience method to get the component descriptor directory.
|
java.io.File |
getMetaTypeDirectory()
Convenience method to get the meta type directory.
|
java.io.File |
getOutputDirectory() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
SpecVersion |
getSpecVersion() |
boolean |
isGenerateAccessors() |
boolean |
isIncremental()
Is this an incremental build
|
boolean |
isSkipVolatileCheck()
Should the check for volatile fields be skipped?
|
boolean |
isStrictMode() |
void |
setGenerateAccessors(boolean generateAccessors)
Defines whether bind and unbind methods are automatically created by
the SCR descriptor generator.
|
void |
setIncremental(boolean incremental)
Set whether this is an incremental build
|
void |
setOutputDirectory(java.io.File outputDirectory)
Sets the directory where the descriptor files will be created.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets global properties to be set for each descriptor.
|
void |
setSkipVolatileCheck(boolean skipVolatileCheck)
Set whether the check should be skipped
|
void |
setSpecVersion(SpecVersion specVersion)
Sets the Declarative Services specification version number to be forced
on the declarations.
|
void |
setStrictMode(boolean strictMode)
Defines whether warnings should be considered as errors and thus cause
the generation process to fail.
|
private boolean generateAccessors
private boolean strictMode
private java.util.Map<java.lang.String,java.lang.String> properties
private SpecVersion specVersion
private java.io.File outputDirectory
private boolean incremental
private boolean skipVolatileCheck
private static final java.lang.String PARENT_NAME
public boolean isGenerateAccessors()
setGenerateAccessors(boolean)public void setGenerateAccessors(boolean generateAccessors)
The generator uses the ASM library to create the method byte codes directly inside the class files. If bind and unbind methods are not to be created, the generator fails if such methods are missing.
The default value of this property is true.
public boolean isStrictMode()
setStrictMode(boolean)public void setStrictMode(boolean strictMode)
The default value of this property is false.
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
The are no default global properties.
public SpecVersion getSpecVersion()
setSpecVersion(SpecVersion)public void setSpecVersion(SpecVersion specVersion)
Supported values for this property are null to autodetect
the specification version, or one of the enum values from
SpecVersion.
The default is to generate the descriptor version according to the
capabilities used by the descriptors. If no 1.1 capabilities, such as
configuration-policy, are used, version 1.0 is used,
otherwise a 1.1 descriptor is generated.
public java.io.File getOutputDirectory()
setOutputDirectory(File)public void setOutputDirectory(java.io.File outputDirectory)
This field has no default value and this setter must called
before passing this object to SCRDescriptorGenerator.setOptions(Options).
public java.io.File getMetaTypeDirectory()
public java.io.File getComponentDescriptorDirectory()
public boolean isIncremental()
public void setIncremental(boolean incremental)
public boolean isSkipVolatileCheck()
public void setSkipVolatileCheck(boolean skipVolatileCheck)