|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.AdvisedSupport
org.springframework.aop.framework.ProxyCreatorSupport
org.springframework.aop.framework.ProxyFactoryBean
org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory
public class ChainingSubsystemProxyFactory
A factory bean, used in conjunction with ChildApplicationContextManager
allowing selected interfaces to be
proxied to a chain of child application contexts. To decide the target of a particular method call, the returned
proxy will search the application context chain in sequence and use the first one that has a bean of the required
name or type that doesn't implement the ActivatableBean
interface or whose whose
ActivateableBean.isActive()
method returns true
. This allows certain functions of a chained
subsystem (e.g. CIFS authentication, SSO) to be targeted to specific members of the chain.
Field Summary |
---|
Fields inherited from class org.springframework.aop.framework.ProxyFactoryBean |
---|
GLOBAL_SUFFIX, logger |
Fields inherited from class org.springframework.aop.framework.AdvisedSupport |
---|
EMPTY_TARGET_SOURCE |
Constructor Summary | |
---|---|
ChainingSubsystemProxyFactory()
Instantiates a new chaining subsystem proxy factory. |
Method Summary | |
---|---|
void |
setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
Sets the application context manager. |
void |
setDefaultTarget(java.lang.Object defaultTarget)
Sets the default target for method calls, when a suitable target cannot be found in the application context chain. |
void |
setInterfaces(java.lang.Class[] interfaces)
|
void |
setSourceBeanName(java.lang.String sourceBeanName)
Sets an optional bean name to target all calls to in the source application context. |
Methods inherited from class org.springframework.aop.framework.ProxyFactoryBean |
---|
adviceChanged, createCompositeInterface, getObject, getObjectType, getProxy, isSingleton, setAdvisorAdapterRegistry, setAutodetectInterfaces, setBeanClassLoader, setBeanFactory, setFrozen, setInterceptorNames, setProxyClassLoader, setProxyInterfaces, setSingleton, setTargetName |
Methods inherited from class org.springframework.aop.framework.ProxyCreatorSupport |
---|
addListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactory |
Methods inherited from class org.springframework.aop.framework.AdvisedSupport |
---|
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addAllAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString, updateAdvisorArray |
Methods inherited from class org.springframework.aop.framework.ProxyConfig |
---|
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.aop.framework.Advised |
---|
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy |
Constructor Detail |
---|
public ChainingSubsystemProxyFactory()
Method Detail |
---|
public void setInterfaces(java.lang.Class[] interfaces)
setInterfaces
in class org.springframework.aop.framework.AdvisedSupport
public void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
applicationContextManager
- the new application context managerpublic void setSourceBeanName(java.lang.String sourceBeanName)
sourceBeanName
- the sourceBeanName to setpublic void setDefaultTarget(java.lang.Object defaultTarget)
defaultTarget
- the defaultTarget to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |