Package org.springframework.aop.aspectj

Examples of org.springframework.aop.aspectj.SingletonAspectInstanceFactory


       
        final Method interceptorMethod = ReflectionUtils.findMethod(CountingMethodInterceptor.class, "countInvocation", ProceedingJoinPoint.class);
        final AspectJAroundAdvice aspectJAroundAdvice = new AspectJAroundAdvice(
                interceptorMethod,
                repositoryPointcutInterfaceExecutionPointcut,
                new SingletonAspectInstanceFactory(this.countingMethodInterceptor));
       
        portletPreferencesProxyFactory.addAdvice(aspectJAroundAdvice);

        final RepositoryPointcutInterface proxiedPointcutInterface = (RepositoryPointcutInterface) portletPreferencesProxyFactory.getProxy();
View Full Code Here


    @Override
    protected AspectJAroundAdvice createInstance() throws Exception {
        final Class<? extends Object> aspectType = this.aspect.getClass();
        final Method method = ReflectionUtils.findMethod(aspectType, this.method, this.args);
        final SingletonAspectInstanceFactory aif = new SingletonAspectInstanceFactory(this.aspect);
        return new AspectJAroundAdvice(method, pointcut, aif);
    }
View Full Code Here

TOP

Related Classes of org.springframework.aop.aspectj.SingletonAspectInstanceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.