Typesafe injection of dynamic OSGi services in hybrid Java EE applications - 1 views
-
Dan Allen on 25 Nov 10Siva introduces how a GlassFish 3.1 CDI Portable Extension (part of the default GlassFish distro) offers a type-safe @Inject'ion of OSGi dynamic services without having to manually look-up or bind to it. The @OSGiService CDI qualifier offered here supports a number of attributes for dynamic binding, OSGi discovery criteria, and binding timeout.