On Tue, Oct 11, 2011 at 3:36 PM, BJ Hargrave <hargr...@us.ibm.com> wrote:
> > My point is simply that the LogService makes writing code free of OSGi > > apis (as is commonly preached) difficult on top of the other concerns > > above. > > Your logging code has to be written to some logging API. Why is some other > logging API more attractive to bind to than the OSGi Log Service API? > When we talk about avoiding OSGi API in your code, we mean the OSGi > framework (the container) API. You should feel free to use OSGi Service API > as needed to get the function you need. For example Event Admin, Log > Services. Understood! But about generic java libraries? What if we want them to work within and without OSGi (which although I truthfully love OSGi and would love to see it everywhere) I think really needs to still be supported if we are talking about true modularity (i.e. OSGi or some other). Let's consider an example (off the top of my head): xStream! How should they write their library to both follow the ideals of OSGi yet work outside the boundaries of OSGi? Do they have to maintain two code bases? I think the only option is to actually tie themselves to some logging API that is known to work outside of OSGi and within. The trap is again the risk of seduction by all those bad paradigms. So where does this leave the library developer? > > > -- > > *BJ Hargrave* > Senior Technical Staff Member, IBM > OSGi Fellow and CTO of the *OSGi Alliance* <http://www.osgi.org/>* > **hargr...@us.ibm.com* <hargr...@us.ibm.com> > > office: +1 386 848 1781 > mobile: +1 386 848 3788 > > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev > -- Raymond Augé <http://twitter.com/#!/rotty3000> Senior Software Architect Liferay, Inc. <http://www.liferay.com> <https://twitter.com/#!/liferay> --- *Europe Symposium * October 18-19, 2011 Register today: www.liferay.com/Europe2011 *New!* Add Portal Admin Training Express<http://www.regonline.com/builder/site/Default.aspx?EventID=997653> --- *Spain Symposium *October 26-27, 2011 Register today: www.liferay.com/Spain2011
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev