[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Generated Classes not found if they do not match any of

adrian@jboss.org do-not-reply at jboss.com
Mon Jan 26 12:54:47 EST 2009


"adrian at jboss.org" wrote : 
  | START OF IMPLEMENTATION DISCUSSION
  | 
  | Anyway, there's a number of ways to do it.
  | 

I'm sure Ales would want to do something more complicated 
but more dynamic and pluggable such as defining a

  | public interface GlobalCapabilitiesProvider
  | {
  |    Capabilities getCapabilities()
  | }
  | 

The ClassLoading would then have an in/uncallback for GlobalCapabilitiesProvider
and one your aop beans would implement it or use a helper bean exposed by
the classloading module.

That way the configuration of your "always exported packages" is in the aop.xml
and only gets applied if aop.xml is deployed.

But others can also use this mechanism if it is required without having to 
worry about mixing the configuration together in classloader.xml. :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204782#4204782

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204782



More information about the jboss-dev-forums mailing list