incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Zhang <>
Subject RE: Proposal to use OSGi for component modularity
Date Wed, 30 May 2012 23:19:02 GMT
> On May 31, 2012, at 0:59 AM, Frank Zhang wrote:
> > Another problem I want to raise here is the class loader issue.
> > There are bunch of places in CloudStack using Class.forName(), I am sure
> ClassNotFoundException would then be our best friend.
> Class.forName() in general won't work in OSGi, that is correct.
> A factory pattern is a good way to solve this issue in general, but extenders
> and the OSGi specific whiteboard pattern might work as well, depending on
> the specific use case.
> Greetings, Marcel

Emm I have not looked in to specific whiteboard pattern, but I doubt factory pattern works
as we need to install proxy to the object using cglib.

View raw message