[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: aop-mc-int tests failing on annotation parsing
kabir.khan@jboss.com
do-not-reply at jboss.com
Wed Mar 5 15:20:57 EST 2008
Modifying methodHasAnnotations to this solves the problem.
| private boolean methodHasAnnotations(MetaData metaData, MethodInfo mi)
| {
| MethodSignature sig = new MethodSignature(mi);
| MetaData methodMD = metaData.getComponentMetaData(sig);
|
| if (hasMetaDataAtInstanceLevel(methodMD))
| {
| return true;
| }
| return false;
| }
|
| private boolean hasMetaDataAtInstanceLevel(MetaData metaData)
| {
| if (metaData != null)
| {
| MetaData instanceMetaData = metaData.getScopeMetaData(CommonLevels.INSTANCE);
| if (instanceMetaData != null && instanceMetaData.isEmpty() == false)
| {
| return true;
| }
| }
| return false;
| }
|
I will run the aop-mc-int tests before commiting
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134392#4134392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134392
More information about the jboss-dev-forums
mailing list