Wouldn't it be nice if we could track|filter services by runtime type
annotations?

Currently I can see the only possible solution being something along the
lines of (note these are bnd DS annotations):

@Component(
properties={
"annotation=com.foo.Baz"
},
provide=Object.class
)
@Baz
public class Bar {
}

Nothing else works (such as passing the annotation class via the provide
array).

Note that in this case a complication comes up because the property must be
a constant which means there is a danger if package is refactored.

Thoughts?
-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect
*Liferay, Inc.* <http://www.liferay.com> (@Liferay)
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to