Package fi.evident.dalesbred.support.aopalliance

Examples of fi.evident.dalesbred.support.aopalliance.AopAllianceTransactionalMethodInterceptor


    /**
     * Binds transaction interceptor for all methods or classes that are annotated with {@link Transactional}.
     */
    public static void bindTransactionInterceptor(@NotNull Binder binder, @NotNull Key<Database> databaseKey) {
        Provider<Database> databaseProvider = binder.getProvider(databaseKey);
        MethodInterceptor interceptor = new AopAllianceTransactionalMethodInterceptor(databaseProvider);

        binder.bindInterceptor(any(), annotatedWith(Transactional.class), interceptor);
        binder.bindInterceptor(annotatedWith(Transactional.class), any(), interceptor);
    }
View Full Code Here

TOP

Related Classes of fi.evident.dalesbred.support.aopalliance.AopAllianceTransactionalMethodInterceptor

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.