On Thu, Oct 16, 2008 at 20:23, Niclas Hedhman <[EMAIL PROTECTED]> wrote: > On Thu, Oct 16, 2008 at 6:32 AM, Edward Yakop <[EMAIL PROTECTED]> wrote: > >> If the fragment class >> bundle does not import net.sf.cglib.proxy package, the enhancer will >> throw a ClassDefNotFoundError exception. > > Are you sure it is not the other way around?? > A requirement that bundles that uses Qi4j must also Import-Package > net.cglib... doesn't sound like a big deal to me. > But I would suspect that you mean that Qi4j bundle must Import-Package > the packages of the fragments, which is not possible. In that case, > setting the CGLib classloader to the Qi4j fragment's classloader > should be enough.
It's the former. This might affect all bundles that provides mixins for services and composites. For example, my sample test case. This would requires qi4j-core-api module to import net.sf.cglib.proxy package. Another question is, doesn't this cglib import is an implementation detail. And what happened if somebody want to use some 3rd party jar interfaces to be one of their composite mixin. Wouldn't they need to rebundle that jar and add import net.sf.cglib.proxy package? Regards, Edward Yakop _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

