|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.Options
public class Options
Options for the SCRDescriptorGenerator
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
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.lang.String |
getMetaTypeName()
|
java.io.File |
getOutputDirectory()
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getSCRName()
|
SpecVersion |
getSpecVersion()
|
boolean |
isGenerateAccessors()
|
boolean |
isGenerateSeparateDescriptors()
Should separate descriptor files be generated? |
boolean |
isStrictMode()
|
void |
setGenerateAccessors(boolean generateAccessors)
Defines whether bind and unbind methods are automatically created by the SCR descriptor generator. |
void |
setGenerateSeparateDescriptors(boolean generateSeparateDescriptors)
Set whether separate descriptor files should be generated. |
void |
setMetaTypeName(java.lang.String metaTypeName)
Sets the name of the file taking the Metatype Service descriptors. |
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 |
setSCRName(java.lang.String finalName)
Sets the name of the SCR declaration descriptor file. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Options()
Method Detail |
---|
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.lang.String getSCRName()
setSCRName(String)
public void setSCRName(java.lang.String finalName)
output directory
.
This file will be overwritten if already existing. If no descriptors are created the file is actually removed.
The default value of this property is serviceComponents.xml
.
public java.lang.String getMetaTypeName()
setMetaTypeName(String)
public void setMetaTypeName(java.lang.String metaTypeName)
output directory
.
This file will be overwritten if already existing. If no descriptors are created the file is actually removed.
The default value of this property is metatype.xml
.
public boolean isGenerateSeparateDescriptors()
public void setGenerateSeparateDescriptors(boolean generateSeparateDescriptors)
generateSeparateDescriptors
- public java.io.File getMetaTypeDirectory()
public java.io.File getComponentDescriptorDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |