Yes, The intention is that if the user of ClassAdapter wants to override at the instance level it will do the following:
// Get a class level adapter (one per class) and its info ClassAdapter classLevelAdapter = classAdapterFactory(myClass); ClassInfo classLevelInfo = classLevelAdapter.getClassInfo(); // Override annotations (if required) and get an instance adapter ClassInfo overrideInfo = (ClassInfo) classLevelInfo.clone(); overrideAnnotations(overrideInfo); ClassAdapter instanceAdapter = classLevelAdapter.getInstanceAdapter(overrideInfo); // After class can be loaded (this might be what forces the actual class load) JoinpointFactory jpf = instanceAdapter (or classLevelAdapter).getJoinPointFactory(); If it is not clear in the javadoc of ClassAdapter, please fix it. If you want to change it, please feel free. We discussed the classes and how they fit in the scheme, but we didn't discuss the exact methods a client uses to get an instance adapter with overridden annotations. This seemed like the most logical solution to me? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867922#3867922 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867922 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
