Package com.gradecak.alfresco.mvc.aop
Class PackageAutoProxyCreator
- java.lang.Object
-
- org.springframework.aop.framework.ProxyConfig
-
- org.springframework.aop.framework.ProxyProcessorSupport
-
- org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
-
- com.gradecak.alfresco.mvc.aop.PackageAutoProxyCreator
-
- All Implemented Interfaces:
Serializable,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor,org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor,org.springframework.beans.factory.InitializingBean,org.springframework.core.Ordered
public class PackageAutoProxyCreator extends org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator implements org.springframework.beans.factory.InitializingBeana proxy creator that applies the specified advisors to the classes defined in the base package. The default advisors areAuthenticationAdvice,RunAsAdviceandTransactionalAdvicehowever your own might be added and the default could be skipped by setting skipDefaultInterceptos to true- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String[]DEFAULT_INTERCEPTORS
-
Constructor Summary
Constructors Constructor Description PackageAutoProxyCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected Object[]getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, org.springframework.aop.TargetSource targetSource)Identify as bean to proxy if the bean name is in the configured base package.voidsetBasePackage(String basePackage)voidsetInterceptorNames(String... interceptorNames)voidsetSkipDefaultInterceptos(boolean skipDefaultInterceptos)-
Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
advisorsPreFiltered, buildAdvisors, createProxy, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, isFrozen, isInfrastructureClass, postProcessAfterInitialization, postProcessBeforeInstantiation, postProcessProperties, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanFactory, setCustomTargetSourceCreators, setFrozen, shouldProxyTargetClass, shouldSkip, wrapIfNecessary
-
Methods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader
-
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DEFAULT_INTERCEPTORS
public static final String[] DEFAULT_INTERCEPTORS
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getAdvicesAndAdvisorsForBean
protected Object[] getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, org.springframework.aop.TargetSource targetSource)
Identify as bean to proxy if the bean name is in the configured base package.- Specified by:
getAdvicesAndAdvisorsForBeanin classorg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
-
setInterceptorNames
public void setInterceptorNames(String... interceptorNames)
- Overrides:
setInterceptorNamesin classorg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
-
setBasePackage
public void setBasePackage(String basePackage)
-
setSkipDefaultInterceptos
public void setSkipDefaultInterceptos(boolean skipDefaultInterceptos)
-
-