Previous Topic

Next Topic

Book Contents

Book Index

Hook agnostic operations

General description

The purpose of these operations is to allow skipping the isolation layer checks defined by OSGi specification. This allows services such as configuration admin, metatype, scr, etc. to operate properly, ignoring the registered framework hooks. The functionality MUST enable listening to all bundle and service events and access all installed bundles and services by certain OSGi containers.

Hook agnostic operations are defined per bundle.

Provided solution

A Bundle is considered hook agnostic if it has Hook-Agnostic header in its manifest. The header value is currently ignored.

Usage

Simply add Hook-Agnostic: * to the bundle manifest header and (org.osgi.framework.AdminPermission "*" "listener") to its permissions file.