OSGi annotation processing OSGi bundles are not introspected by OSGiImplementation when a component is created. Instead if the list of implementation classes is specified in , the classes are introspected when the bundle is resolved. The classes are loaded using the bundle ClassLoader, and hence the delay in annotation processing is inevitable. There is one other difference compared to implementation.java. While instances (and the instance class) are associated with a component in Java, all Java annotations from the component implementation class apply to all the component instances. In OSGi, instances are associated with services, and a bundle can register multiple services. Hence annotations from classes need to be stored separately so that the right ones can be associated with the service instance.
@version $Rev: 658007 $ $Date: 2008-05-19 15:29:47 -0700 (Mon, 19 May 2008) $
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.