Spring Framework AbstractAdvisingBeanPostProcessor - 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 AbstractAdvisingBeanPostProcessor class.

This code example shows how to use the following methods:setBeforeExistingAdvisors
	private Executor executor;
 
	private AsyncUncaughtExceptionHandler exceptionHandler;
 
 
	public AsyncAnnotationBeanPostProcessor() { 
		setBeforeExistingAdvisors(true);
	} 
 
 
	/** 
	 * Set the 'async' annotation type to be detected at either class or method 
	 * level. By default, both the {@link Async} annotation and the EJB 3.1 
	 * {@code javax.ejb.Asynchronous} annotation will be detected. 
	 * <p>This setter property exists so that developers can provide their own 
	 * (non-Spring-specific) annotation type to indicate that a method (or all 
	 * methods of a given class) should be invoked asynchronously. 
	 * @param asyncAnnotationType the desired annotation type 
	 */ 
	public void setAsyncAnnotationType(Class<? extends Annotation> asyncAnnotationType) {
6
CodeRank
This code example shows how to use the following methods:
 * @see org.springframework.stereotype.Repository 
 * @see org.springframework.dao.DataAccessException 
 * @see org.springframework.dao.support.PersistenceExceptionTranslator 
 */ 
@SuppressWarnings("serial") 
public class PersistenceExceptionTranslationPostProcessor extends AbstractAdvisingBeanPostProcessor
		implements BeanFactoryAware {
 
	private Class<? extends Annotation> repositoryAnnotationType = Repository.class;
 
 
	/** 
	 * Set the 'repository' annotation type. 
	 * The default repository annotation type is the {@link Repository} annotation. 
	 * <p>This setter property exists so that developers can provide their own 
	 * (non-Spring-specific) annotation type to indicate that a class has a 
	 * repository role. 
	 * @param repositoryAnnotationType the desired annotation type 
	 */ 
	public void setRepositoryAnnotationType(Class<? extends Annotation> repositoryAnnotationType) {
6
CodeRank
This code example shows how to use the following methods:
 * @since 3.1 
 * @see MethodValidationInterceptor 
 * @see org.hibernate.validator.method.MethodValidator 
 */ 
@SuppressWarnings("serial") 
public class MethodValidationPostProcessor extends AbstractAdvisingBeanPostProcessor implements InitializingBean { 
 
	private Class<? extends Annotation> validatedAnnotationType = Validated.class; 
 
	private Validator validator; 
 
 
	/** 
	 * Set the 'validated' annotation type. 
	 * The default validated annotation type is the {@link Validated} annotation. 
	 * <p>This setter property exists so that developers can provide their own 
	 * (non-Spring-specific) annotation type to indicate that a class is supposed 
	 * to be validated in the sense of applying method validation. 
	 * @param validatedAnnotationType the desired annotation type 
	 */ 
6
CodeRank
See Code Examples for Spring Framework AbstractAdvisingBeanPostProcessor Methods: