[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP asintegration WITHOUT the integration :-)
kabir.khan@jboss.com
do-not-reply at jboss.com
Mon Aug 20 11:25:20 EDT 2007
Could you point me towards some information on which way the imports/exports work? For example in the following, my interpretation is that the "A" classloader imports/uses all classes from the underlying domain, apart from if they belong to the "a" package?
| public class SimpleImportAllUnitTestCase extends AOPIntegrationTest
| {
| ...
| /*
| * A simple test that loads a class from another classloader
| * that uses aop enhanced classes from our classloader.
| *
| * The other classloader importsAll from the classloading system.
| */
| public void testImportAll() throws Exception
| {
| ClassLoader classLoader = createClassLoader("A", true, PACKAGE_A);
| try
| {
| Class<?> classA = classLoader.loadClass(CLASS_A);
| classA.newInstance();
| }
| finally
| {
| unregisterClassLoader(classLoader);
| }
| }
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075909#4075909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075909
More information about the jboss-dev-forums
mailing list