interception.jar

Description
provides a example of intercepted calls to the bundle context
For more details on how to use this bundle, refer to the /doc/readme.html file embedded in the bundle jarfile.

Contributors

License
Library GNU Public License

Services

Properties

Requirements

  • None

  • Download

    Build

    1. configure the common.properties if necessary
    2. configure the project.properties if necessary
    3. build with ant

    Settings
    Set the manifest entries as following
    Bundle-Activator: fr.imag.adele.bundle.interception.impl.Activator
    X-Bundle-Activator: the classname of your Activator class to intercepted
    X-Bundle-Context: the classname of your BundleContextInterceptor
    This setting could be done at loading by the framework or before the publication in a bundle repository
    The build.setinterception.xml ANT script done this work !

    Run the demo
    To run the demo of this bundle, enter the following commands in the OSCAR shell

    obr -u http://oscar-osgi.sf.net/br/bundlerepository.txt http://www-adele.imag.fr/~donsez/dev/osgi/obr.txt
    obr -s Intercepted BundleContext Demo
    
    or
    obr -s Service Binder	
    start http://www-adele.imag.fr/~donsez/dev/osgi/interception/interception.jar
    

    Typical Usages

  • Trace bundle context
  • ServiceOnDemand
  • Local and Remote Service Trading
  • Reify service architecture as in ServiceBinder
  • Bundle garbage collection (passivation or uninstallation): Bundles (in fact provided services) that are only use by the bundle to stop (resp. unisntall) are also stopped (resp. uninstalled)
  • ...
  • Tested gateways

    Versions history

    TODO (contributions are welcome)