mathieuancelin/weld-osgi — Issue #82: Provide a class with constants for bundle header injection
Author: kevinpollet
Created: 2011-11-02 10:38:02+00:00
State: open

Currently, a bundle header can be injected with the following code.

class Foo {
@BundleHeader("Bundle-SymbolicName")
String name;
}

It could be great if weld-osgi provides a class with constants for existing OSGi headers (to avoid typos). With this class the bundle header injection could be something like

class Foo {
@BundleHeader(Headers.BUNDLE_SYMBOLIC_NAME)
String name;
}