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


Reply via email to