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(Header.BUNDLE_SYMBOLIC_NAME)
String name;
}
Currently a bundle header can be injected with the following code.
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