Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathieuancelin/play-osgi
Everything in is the name :)
https://github.com/mathieuancelin/play-osgi
Last synced: 3 days ago
JSON representation
Everything in is the name :)
- Host: GitHub
- URL: https://github.com/mathieuancelin/play-osgi
- Owner: mathieuancelin
- Created: 2011-08-08T10:37:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-08T13:56:56.000Z (over 13 years ago)
- Last Synced: 2023-03-11T09:56:41.331Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 941 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
README
Play OSGi
=========This Play! module intent to bring the power and the dynamism of OSGi into Play! applications.
OSGi Startup
------------The OSGi framework is embedded inside the Play OSGi module and is started/stopped with the framework.
The OSGi framework used is Apache Felix.OSGi Shell telnet access
-------------Once started, the OSGi framework provides a shell services to interact with it. This shell is available via telnet protocole.
Just type in a terminal :`telnet localhost 6666`
and you will be able to interact with the OSGi framework. Type 'help' to know the availbale commands.
OSGi bundles auto-deploy
------------------------The Play OSGi module provide a way to autodeploy bundles. Once you application is started, just drop OSGi bundle in the 'autodeploy' folder at the root of your application.
OSGi web console
----------------An OSGi admin web console is available in the app using the Play OSGi module.
It's available at : http://localhost:9000/osgi/adminOSGi API access
---------------You can access the current bundle context with the following method :
`BundleContext context = OSGi.bundleContext();`
OSGi Services programmatic lookup
---------------------------------
You can lookup OSGi services with the following methods :`MyService service = OSGi.service(MyService.class);`
`Iterable services = OSGi.services(MyService.class, "(lang=*)");`
OSGi Services injection
-----------------------You can lookup OSGi services with built-in dependency injection :
`@Inject @OSGiService private MyService service;`
`@Inject @OSGiService("(lang=*)") private Iterable services;`