-
1. Re: Boston meeting notes: Two phase join point factory const
bill.burke Feb 24, 2005 3:36 PM (in response to adrian.brock)I don't see in the current ClassAdapter or ClassAdapterFactory interfaces how it receives annotation overrides.
-
2. Re: Boston meeting notes: Two phase join point factory const
bill.burke Feb 24, 2005 3:45 PM (in response to adrian.brock)Does the getInstanceAdapter get called if there are annotation overrides?
-
3. Re: Boston meeting notes: Two phase join point factory const
adrian.brock Feb 25, 2005 10:51 AM (in response to adrian.brock)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?