Code example for Method

Methods: getDeclaringClassgetNameinvoke

0
        return callAlterBeanMethod; 
    } 
 
    private Object callAlterBeanMethod(final MethodInvocation pMInvoc, String alterBean, Logger targetLogger) { 
        Method method = pMInvoc.getMethod(); 
        targetLogger.debug("FeatureFlipping on method:{} class:{}", method.getName(), method.getDeclaringClass().getName()); 
        // invoke same method (interface) with another spring bean (ff.alterBean()) 
        try { 
            return method.invoke(appCtx.getBean(alterBean, method.getDeclaringClass()), pMInvoc.getArguments()); 
        } catch (Exception e) { 
            throw new IllegalArgumentException("ff4j-aop: Cannot invoke method " + method.getName() + " on bean " + alterBean, e); 
        } 
    } 
 
    private boolean shouldCallAlterClazzMethod(final MethodInvocation pMInvoc, Class<?> alterClass, Logger logger) { 
        boolean callAlterBeanMethod = false; 
        Method method = pMInvoc.getMethod(); 
        Class<?> currentClass = pMInvoc.getThis().getClass(); 
        if (alterClass != null && (alterClass != NullType.class)) { 
            callAlterBeanMethod = !currentClass.equals(alterClass); 
Connect your IDE to all the code out there  Get Codota for Java