com.mysema.rdfbean.guice.TransactionalInterceptor Maven / Gradle / Ivy
/*
* Copyright (c) 2009 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.rdfbean.guice;
import java.lang.reflect.Method;
import java.util.Map;
import javax.annotation.concurrent.ThreadSafe;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.transaction.annotation.Transactional;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.mysema.rdfbean.model.RDFBeanTransaction;
import com.mysema.rdfbean.object.FlushMode;
import com.mysema.rdfbean.object.Session;
import com.mysema.rdfbean.object.SessionFactory;
import com.mysema.rdfbean.object.SimpleSessionContext;
import com.mysema.rdfbean.object.TxException;
/**
* TransactionalInterceptor provides a MethodInterceptor implementation for
* transactional method interception
*
* @author tiwe
* @version $Id$
*
*/
@ThreadSafe
class TransactionalInterceptor implements MethodInterceptor{
private final Provider
© 2015 - 2024 Weber Informatics LLC | Privacy Policy