Anyframe Core

anyframe.common.aop
Class ExclusiveBeanNameAutoProxyCreator

java.lang.Object
  extended by org.springframework.aop.framework.ProxyConfig
      extended by org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
          extended by org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator
              extended by anyframe.common.aop.ExclusiveBeanNameAutoProxyCreator
All Implemented Interfaces:
Serializable, AopInfrastructureBean, BeanClassLoaderAware, BeanFactoryAware, BeanPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, InitializingBean, Ordered

public class ExclusiveBeanNameAutoProxyCreator
extends BeanNameAutoProxyCreator
implements InitializingBean

Automatical proxy creator class to identify beans to proxy using the bean name list. Checks for direct, "test*", and "*test" matches.

Author:
SoYon Lim, JongHoon Kim
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
DO_NOT_PROXY, logger, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ExclusiveBeanNameAutoProxyCreator()
           
 
Method Summary
 void afterPropertiesSet()
          
 Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource targetSource)
           
 void setBeanNames(String[] beanNames)
          
 void setExclusiveBeanNames(String[] beanNames)
          Set the names of the exclusive beans
 
Methods inherited from class org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator
isMatch
 
Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
advisorsPreFiltered, buildAdvisors, createProxy, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, getOrder, isFrozen, isInfrastructureClass, isInfrastructureClass, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanClassLoader, setBeanFactory, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, setOrder, setProxyClassLoader, shouldProxyTargetClass, shouldSkip, wrapIfNecessary
 
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
 

Constructor Detail

ExclusiveBeanNameAutoProxyCreator

public ExclusiveBeanNameAutoProxyCreator()
Method Detail

setBeanNames

public void setBeanNames(String[] beanNames)

Overrides:
setBeanNames in class BeanNameAutoProxyCreator

getAdvicesAndAdvisorsForBean

public Object[] getAdvicesAndAdvisorsForBean(Class beanClass,
                                             String beanName,
                                             TargetSource targetSource)
Overrides:
getAdvicesAndAdvisorsForBean in class BeanNameAutoProxyCreator

setExclusiveBeanNames

public void setExclusiveBeanNames(String[] beanNames)
Set the names of the exclusive beans

Parameters:
beanNames - exclusive bean names

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.