|
ColdSpring 2.0 - Narwhal | ||||
FRAMES |
WEB-INF.cftags.component coldspring.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator
public class AbstractAdvisorAutoProxyCreator
Generic auto proxy creator that builds AOP proxies for specific beans based on detected Advisors for each bean.
Subclasses must implement the abstract findEligableAdvisors() method to return a list of Advisors applying to any object
Constructor Summary | |
---|---|
init()
Constructor |
Method Summary | |
---|---|
boolean |
checkClassMatchAdvisors(Class class)
Check to see if this class is an AOP candidate, against the given set of Advisors |
any |
checkIsAOPCandidate(Class class)
Check to see if this bean is an AOP candidate, against the given set of Advisors |
private array<Advisor> |
findCandidateAdvisors()
Returns all Advisors in the BeanFactory |
private array<Advisor> |
findEligableAdvisors()
Abstract: overwrite me to determine which Advisors are candidates for auto proxying |
private array<Advisor> |
getAdvisors()
|
private BeanFactory |
getBeanFactory()
|
private struct<string,string> |
getCreateProxyCache()
|
private struct |
getEarlyProxyCache()
|
private ProxyFactory |
getProxyFactory()
|
private ReflectionService |
getReflectionService()
|
private struct |
getWrapInstantiatedProxyCache()
|
void |
initProxyFactory()
initialises the proxy factory with all it's required advisors |
any |
postProcessAfterInitialization(any bean, string beanName)
Returns the current bean |
boolean |
postProcessAfterInstantiation(any bean, string beanName)
Always returns true |
any |
postProcessBeforeInitialization(any bean, string beanName)
Returns the current bean |
any |
postProcessBeforeInstantiation(any class, string beanName)
Generates the AOP proxy for the given bean, if any Advisors match this bean |
private void |
setAdvisors(array<Advisor> advisors)
|
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance |
private void |
setCreateProxyCache(struct<string,string> createProxyCache)
|
private void |
setEarlyProxyCache(struct earlyProxyCache)
|
private void |
setProxyFactory(ProxyFactory proxyFactory)
|
private void |
setReflectionService(ReflectionService reflectionService)
|
private void |
setWrapInstantiatedProxyCache(struct wrapInstantiatedProxyCache)
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public boolean checkClassMatchAdvisors(Class class)
class
- the class to checkpublic any checkIsAOPCandidate(Class class)
class
- the class of the beanprivate array<Advisor> findCandidateAdvisors()
private array<Advisor> findEligableAdvisors()
private array<Advisor> getAdvisors()
private BeanFactory getBeanFactory()
private struct<string,string> getCreateProxyCache()
private struct getEarlyProxyCache()
private ProxyFactory getProxyFactory()
private ReflectionService getReflectionService()
private struct getWrapInstantiatedProxyCache()
public void initProxyFactory()
public any postProcessAfterInitialization(any bean, string beanName)
postProcessAfterInitialization
in interface
BeanPostProcessor
bean
- the new bean instancebeanName
- the name of the beanpublic boolean postProcessAfterInstantiation(any bean, string beanName)
postProcessAfterInstantiation
in interface
InstantiationAwareBeanPostProcessor
bean
- the bean instance created, with properties not having been set yetbeanName
- the name of the beanpublic any postProcessBeforeInitialization(any bean, string beanName)
postProcessBeforeInitialization
in interface
BeanPostProcessor
bean
- the new bean instancebeanName
- the name of the beanpublic any postProcessBeforeInstantiation(any class, string beanName)
postProcessBeforeInstantiation
in interface
InstantiationAwareBeanPostProcessor
class
- The class and/or meta data information of the bean about to be instantiated.
For CFCs this will be the results of getMetaData(), for Java objects it will be an instance of java.lang.ClassbeanName
- the name of the beanprivate void setAdvisors(array<Advisor> advisors)
advisors
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface
BeanFactoryAware
beanFactory
private void setCreateProxyCache(struct<string,string> createProxyCache)
createProxyCache
private void setEarlyProxyCache(struct earlyProxyCache)
earlyProxyCache
private void setProxyFactory(ProxyFactory proxyFactory)
proxyFactory
private void setReflectionService(ReflectionService reflectionService)
reflectionService
private void setWrapInstantiatedProxyCache(struct wrapInstantiatedProxyCache)
wrapInstantiatedProxyCache
|
ColdSpring 2.0 - Narwhal | ||||
FRAMES |