/** * Add a @{@link javax.interceptor.AroundInvoke} method of this class. * @param aroundInvokeMethodMetadata the method. */ public void addAroundInvokeMethodMetadata(final EasyBeansEjbJarMethodMetadata aroundInvokeMethodMetadata) { if (this.aroundInvokeMethodsMetadata == null) { this.aroundInvokeMethodsMetadata = new LinkedList<EasyBeansEjbJarMethodMetadata>(); } // Check not yet present for (EasyBeansEjbJarMethodMetadata methodMetadata : this.aroundInvokeMethodsMetadata) { if (aroundInvokeMethodMetadata.getClassMetadata().getClassName().equals(methodMetadata.getClassMetadata().getClassName())) { if (aroundInvokeMethodMetadata.getJMethod().equals(methodMetadata.getJMethod())) { return; } } } this.aroundInvokeMethodsMetadata.addFirst(aroundInvokeMethodMetadata); }
+ compareMetaData.getClassName().replace("/", ""), jMethod.getDescriptor(), jMethod .getSignature(), jMethod.getExceptions()); if (!methodMetadata.getJMethod().equals(method.getJMethod()) && !methodMetadata.getJMethod().equals(otherMethod)) { throw new InterceptorsValidationException("Class " + getClassName() + " has already a " + itcType + " method which is " + method.getMethodName() + ", cannot set new method "