Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
exercise3-osgi-example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas
exercise3-osgi-example
Commits
f81754ee
Commit
f81754ee
authored
7 years ago
by
Thomas
Browse files
Options
Downloads
Patches
Plain Diff
initial commit
parents
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+26
-0
26 additions, 0 deletions
README.md
exercise3-osgi-example.zip
+0
-0
0 additions, 0 deletions
exercise3-osgi-example.zip
with
26 additions
and
0 deletions
README.md
0 → 100644
+
26
−
0
View file @
f81754ee
% Example Eclipse Workspace with OSGi
% Christian Piechnick and Thomas Kühn
% 9.5.2018
# Installation
*
Unzip the example archive
`example.zip`
*
Start eclipse and "Switch Workspace" to the "osgi" folder
*
Enable Automatic Build
*(Project —> Build Automatically)*
*
Build the workspace
*(Project —> Build All)*
*
The workspace has already a preconfigured run configuration “OSGi Framework”
*
Use run “OSGi framework” to start the
`OSGi`
and the console
*
See the console output
*
Play with the console commands[^1]
[
^1
]:
http://www.vogella.com/tutorials/OSGi/article.html#the-osgi-console
# Application
*
Contains four bundles, such as
`OSGIMinimalExample`
,
`CommonTypes`
,
`ComponentA`
,
`ComponentB`
)
*
Every bundle has an
`Activator`
class and a
`Manifest`
file
*
`CommonTypes`
captures datatypes, e.g., Service interfaces that are needed by all components and is included in the main project
`OSGIMinimalExample`
-
`OSGIMinimalExample`
is the main bundle and has dependencies to all other bundles (see the
`MANIFEST.MF`
for details)
-
`ComponentB`
offers
`ServiceB`
class as implementation of the
`IServiceB`
interface
-
`ComponentA`
offers
`ServiceA`
class as implementation of the
`IServiceA`
interface
-
`ComponentA`
in turn requires an instance of
`IServiceB`
(see implementation of
`ServiceA`
for details)
This diff is collapsed.
Click to expand it.
exercise3-osgi-example.zip
0 → 100644
+
0
−
0
View file @
f81754ee
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment