Spring Framework AbstractSingletonProxyFactoryBean - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractSingletonProxyFactoryBean class.

This code example shows how to use the following methods:
import org.springframework.aop.framework.AbstractSingletonProxyFactoryBean; 
import org.springframework.beans.factory.BeanFactory; 
import org.springframework.beans.factory.BeanFactoryAware; 
 
@SuppressWarnings("serial") 
public class TestProxyFactoryBean extends AbstractSingletonProxyFactoryBean implements BeanFactoryAware { 
 
	@Override 
	protected Object createMainInterceptor() { 
		return new NoOpAdvice(); 
	} 
 
	@Override 
	public void setBeanFactory(BeanFactory beanFactory) { 
	} 
 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 * @since 3.1 
 * @see org.springframework.aop.framework.ProxyFactoryBean 
 * @see CacheInterceptor 
 */ 
@SuppressWarnings("serial") 
public class CacheProxyFactoryBean extends AbstractSingletonProxyFactoryBean { 
 
	private final CacheInterceptor cachingInterceptor = new CacheInterceptor(); 
 
	private Pointcut pointcut; 
 
 
	/** 
	 * Set a pointcut, i.e a bean that can cause conditional invocation 
	 * of the CacheInterceptor depending on method and attributes passed. 
	 * Note: Additional interceptors are always invoked. 
	 * @see #setPreInterceptors 
	 * @see #setPostInterceptors 
	 */ 
	public void setPointcut(Pointcut pointcut) { 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 * @see #setTransactionAttributes 
 * @see TransactionInterceptor 
 * @see org.springframework.aop.framework.ProxyFactoryBean 
 */ 
@SuppressWarnings("serial") 
public class TransactionProxyFactoryBean extends AbstractSingletonProxyFactoryBean 
		implements BeanFactoryAware { 
 
	private final TransactionInterceptor transactionInterceptor = new TransactionInterceptor(); 
 
	private Pointcut pointcut; 
 
 
	/** 
	 * Set the transaction manager. This will perform actual 
	 * transaction management: This class is just a way of invoking it. 
	 * @see TransactionInterceptor#setTransactionManager 
	 */ 
	public void setTransactionManager(PlatformTransactionManager transactionManager) { 
		this.transactionInterceptor.setTransactionManager(transactionManager); 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 */ 
public class TransactionMonitorProxyFactoryBean extends AbstractSingletonProxyFactoryBean {
 
  private TransactionMonitorInterceptor transactionMonitorInterceptor;
 
  public TransactionMonitorProxyFactoryBean() { 
    this.transactionMonitorInterceptor = new TransactionMonitorInterceptor(
        new MatchAlwaysMonitoredAttributeSource()); 
  } 
 
  public TransactionMonitorProxyFactoryBean(MonitoredAttributeSource monitoredAttributeSource) {
    setMonitoredAttributeSource(monitoredAttributeSource);
  } 
 
  public TransactionMonitorProxyFactoryBean(TransactionMonitorInterceptor interceptor) {
    setTransactionMonitorInterceptor(interceptor);
  } 
 
  public void setTransactionMonitorInterceptor(TransactionMonitorInterceptor interceptor) {
    Validate.notNull(interceptor, "transactionMonitorInterceptor is required");
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java