|
||||||||||
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.io.File |
getOutputDirectory()
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
SpecVersion |
getSpecVersion()
|
boolean |
isGenerateAccessors()
|
boolean |
isStrictMode()
|
void |
setGenerateAccessors(boolean generateAccessors)
Defines whether bind and unbind methods are automatically created by the SCR descriptor generator. |
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 |
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.io.File getMetaTypeDirectory()
public java.io.File getComponentDescriptorDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |