/** * Test if the interceptor is applicable. * @return True, if applicable. */ public boolean customIsApplicable(ServiceInvocationContext context) { boolean ret = false; Annotation[] methodannos = context.getMethod().getAnnotations(); for(int i=0; !ret && i<methodannos.length; i++) { ret = isPrePostCondition(methodannos[i]); } if(!ret) { Annotation[][] paramannos = context.getMethod().getParameterAnnotations(); for(int i=0; !ret && i<paramannos.length; i++) { for(int j=0; !ret && j<paramannos[i].length; j++) { ret = isPrePostCondition(paramannos[i][j]); } } } return ret; }
/** * Test if the interceptor is applicable. * @return True, if applicable. */ public boolean customIsApplicable(ServiceInvocationContext context) { boolean ret = false; Annotation[] methodannos = context.getMethod().getAnnotations(); for(int i=0; !ret && i<methodannos.length; i++) { ret = isPrePostCondition(methodannos[i]); } if(!ret) { Annotation[][] paramannos = context.getMethod().getParameterAnnotations(); for(int i=0; !ret && i<paramannos.length; i++) { for(int j=0; !ret && j<paramannos[i].length; j++) { ret = isPrePostCondition(paramannos[i][j]); } } } return ret; }