Class AbstractBndGenerator
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.bnd.AbstractBndGenerator
- All Implemented Interfaces:
Generator, Renamable, ResourceProvider
- Direct Known Subclasses:
BndAnalyzer, BndBaseliner
A base class for providers using bndlib.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBndGenerator(Project project) Initializes a new abstract bnd generator. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyInstructions(aQute.bnd.osgi.Processor processor) Apply the collected instructions to the given bnd processor.instruction(String key, String value) Add the instruction specified by key and value.instructions(Path bndFile) Add the instructions from the given bnd (properties) file.instructions(Map<String, String> instructions) Add the given instructions for the analyzer.Methods inherited from class AbstractGenerator
cleanup, name, newResource, project, toStringMethods inherited from class AbstractProvider
context, doProvide, name, of, rename, vavrStream
-
Constructor Details
-
AbstractBndGenerator
Initializes a new abstract bnd generator.- Parameters:
project- the project
-
-
Method Details
-
instruction
Add the instruction specified by key and value.- Parameters:
key- the keyvalue- the value- Returns:
- the bnd analyzer
-
instructions
Add the given instructions for the analyzer.- Parameters:
instructions- the instructions- Returns:
- the bnd analyzer
-
instructions
Add the instructions from the given bnd (properties) file.- Parameters:
bndFile- the bnd file- Returns:
- the bnd analyzer
-
applyInstructions
Apply the collected instructions to the given bnd processor.- Parameters:
processor- the processor
-