public class Options extends Object
SCRDescriptorGenerator
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
File |
getComponentDescriptorDirectory()
Convenience method to get the component descriptor directory.
|
File |
getMetaTypeDirectory()
Convenience method to get the meta type directory.
|
File |
getOutputDirectory() |
Map<String,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(File outputDirectory)
Sets the directory where the descriptor files will be created.
|
void |
setProperties(Map<String,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.
|
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 void setProperties(Map<String,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 File getOutputDirectory()
setOutputDirectory(File)
public void setOutputDirectory(File outputDirectory)
This field has no default value and this setter must called
before passing this object to SCRDescriptorGenerator.setOptions(Options)
.
public File getMetaTypeDirectory()
public File getComponentDescriptorDirectory()
public boolean isIncremental()
public void setIncremental(boolean incremental)
public boolean isSkipVolatileCheck()
public void setSkipVolatileCheck(boolean skipVolatileCheck)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.