> From: Raymond Auge <[email protected]> > Yup, and so this goes back around: > > "Wouldn't it be nice if we could track|filter services by runtime > type annotations?"
There is no way the framework is going to look at every service object to see if it is annotated with some annotation. Furthermore, with ServiceFactory, the framework does not even have a service object to inspect until some bundle requests the service object. > > There are plenty of cases where you want to massively classify by > annotations rather than by type, hence the world of annotation > scanners: Spring, CDI, JPA, etc. Right. But the OSGi framework is not going to scan bundles for annotations especially since it has no idea what annotations are even interesting to you. -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [email protected] office: +1 386 848 1781 mobile: +1 386 848 3788
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
