-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move examples from unit tests to AsciiDoc
- Loading branch information
1 parent
ee61f45
commit 58e6c4b
Showing
3 changed files
with
38 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
= Examples | ||
|
||
''' | ||
|
||
[,java] | ||
---- | ||
InputStream inputStream = bundle() | ||
.activator(HelloWorldActivator.class) | ||
.add(HelloWorld.class) | ||
.add(HelloWorldImpl.class) | ||
.add(DsService.class) | ||
.symbolicName("Hello World Bundle") | ||
.set(Constants.EXPORT_PACKAGE, "") | ||
.set(Constants.IMPORT_PACKAGE, "*") | ||
.build(bndBuilder()); | ||
---- | ||
- Setting `Bundle-Activator` and `Bundle-SymbolicName` via dedicated methods | ||
- Adding a service with Declarative Services component annotations | ||
- Building with bnd builder | ||
''' | ||
[,java] | ||
---- | ||
InputStream inputStream = bundle() | ||
.add(HelloWorldActivator.class) | ||
.add(HelloWorld.class) | ||
.add(HelloWorldImpl.class) | ||
.set(Constants.BUNDLE_SYMBOLICNAME, "Hello World Bundle") | ||
.set(Constants.EXPORT_PACKAGE, "demo") | ||
.set(Constants.IMPORT_PACKAGE, "demo") | ||
.set(Constants.BUNDLE_ACTIVATOR, HelloWorldActivator.class.getName()) | ||
.build(rawBuilder()); | ||
---- | ||
- Setting `Bundle-Activator` and `Bundle-SymbolicName` manually | ||
- Building with raw builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.