Class ManifestPlugin
- java.lang.Object
-
- biz.aQute.bnd.reporter.plugins.entries.bundle.ManifestPlugin
-
- All Implemented Interfaces:
Plugin
,ReportEntryPlugin<Jar>
public class ManifestPlugin extends java.lang.Object implements ReportEntryPlugin<Jar>, Plugin
This plugin allows to add some of the bundle manifest headers to the report.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
_properties
-
Fields inherited from interface aQute.bnd.service.reporter.ReportEntryPlugin
ENTRY_NAME_PROPERTY, SOURCE_CLASS_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ManifestPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OSGiHeadersDTO
extract(Jar jar, java.util.Locale locale)
Extracts a piece of information from the source in arguments.java.util.Map<java.lang.String,java.lang.String>
getProperties()
void
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Give the plugin the remaining properties.void
setReporter(Reporter processor)
Set the current reporter.
-
-
-
Method Detail
-
extract
public OSGiHeadersDTO extract(Jar jar, java.util.Locale locale)
Description copied from interface:ReportEntryPlugin
Extracts a piece of information from the source in arguments.If the source contains localized data, it will be extracted for the specified locale or a less specific if not found.
- Specified by:
extract
in interfaceReportEntryPlugin<Jar>
- Parameters:
jar
- the source to inspect, must not benull
locale
- theString
representation of aLocale
, must not benull
- Returns:
- a DTO representation or
null
if no data is available
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getProperties
in interfaceReportEntryPlugin<Jar>
- Returns:
- a map of properties, never
null
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.Exception
Description copied from interface:Plugin
Give the plugin the remaining properties. When a plugin is declared, the clause can contain extra properties. All the properties and directives are given to the plugin to use.- Specified by:
setProperties
in interfacePlugin
- Parameters:
map
- attributes and directives for this plugin's clause- Throws:
java.lang.Exception
-
setReporter
public void setReporter(Reporter processor)
Description copied from interface:Plugin
Set the current reporter. This is called at init time. This plugin should report all errors and warnings to this reporter.- Specified by:
setReporter
in interfacePlugin
-
-