MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, InvocationContext.class); builder.setAroundInvoke(methodIdentifier); if (aroundInvoke.getClassName() == null || aroundInvoke.getClassName().isEmpty()) { final String className = ClassReflectionIndexUtil.findRequiredMethod(reflectionIndex, componentClass, methodIdentifier).getDeclaringClass().getName(); component.addInterceptorMethodOverride(className, builder.build()); } else { component.addInterceptorMethodOverride(aroundInvoke.getClassName(), builder.build());
MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, InvocationContext.class); builder.setAroundInvoke(methodIdentifier); if (aroundInvoke.getClassName() == null || aroundInvoke.getClassName().isEmpty()) { eeModuleDescription.addInterceptorMethodOverride(interceptorClassName, builder.build()); } else { eeModuleDescription.addInterceptorMethodOverride(aroundInvoke.getClassName(), builder.build());
private void addInterceptorMethodAnnotation(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, AroundInvokesMetaData callbacks, Class<? extends Annotation> ann, String xmlName) { if (callbacks == null) return; for(AroundInvokeMetaData callback : callbacks) { Class<?> callbackClass = loadClass(container, callback.getClassName()); addInterceptorMethodAnnotation(container, callbackClass, callback.getMethodName(), ann, xmlName); } }
MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, InvocationContext.class); builder.setAroundInvoke(methodIdentifier); if (aroundInvoke.getClassName() == null || aroundInvoke.getClassName().isEmpty()) { final String className = ClassReflectionIndexUtil.findRequiredMethod(reflectionIndex, componentClass.getModuleClass(), methodIdentifier).getDeclaringClass().getName(); component.addInterceptorMethodOverride(className, builder.build()); } else { component.addInterceptorMethodOverride(aroundInvoke.getClassName(), builder.build());
MethodIdentifier methodIdentifier = MethodIdentifier.getIdentifier(Object.class, methodName, InvocationContext.class); builder.setAroundInvoke(methodIdentifier); if (aroundInvoke.getClassName() == null || aroundInvoke.getClassName().isEmpty()) { eeModuleDescription.addInterceptorMethodOverride(interceptorClassName, builder.build()); } else { eeModuleDescription.addInterceptorMethodOverride(aroundInvoke.getClassName(), builder.build());