Class SubsystemProxyFactory
- java.lang.Object
-
- org.springframework.aop.framework.ProxyConfig
-
- org.springframework.aop.framework.AdvisedSupport
-
- org.springframework.aop.framework.ProxyCreatorSupport
-
- org.springframework.aop.framework.ProxyFactoryBean
-
- org.alfresco.repo.management.subsystems.SubsystemProxyFactory
-
- All Implemented Interfaces:
java.io.Serializable,org.springframework.aop.framework.Advised,org.springframework.aop.TargetClassAware,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.FactoryBean<java.lang.Object>,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
CryptodocSubsystemProxyFactory
public class SubsystemProxyFactory extends org.springframework.aop.framework.ProxyFactoryBean implements org.springframework.context.ApplicationContextAwareA factory bean, normally used in conjunction withChildApplicationContextFactoryallowing selected interfaces in a child application context to be proxied by a bean in the parent application context. This allows 'hot-swapping' and reconfiguration of entire subsystems.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubsystemProxyFactory()Instantiates a new managed subsystem proxy factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectlocateBean(org.aopalliance.intercept.MethodInvocation mi)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetDefaultBean(java.lang.Object defaultBean)Sets an optional default bean to be used if the target bean is not found.voidsetInterfaces(java.lang.Class[] interfaces)voidsetSourceApplicationContextFactory(ApplicationContextFactory sourceApplicationContextFactory)Sets the source application context factory by referencevoidsetSourceApplicationContextFactoryName(java.lang.String sourceApplicationContextFactoryName)Sets the source application context factory by name.voidsetSourceBeanName(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, 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
-
-
-
-
Method Detail
-
setInterfaces
public void setInterfaces(java.lang.Class[] interfaces)
- Overrides:
setInterfacesin classorg.springframework.aop.framework.AdvisedSupport
-
setSourceApplicationContextFactoryName
public void setSourceApplicationContextFactoryName(java.lang.String sourceApplicationContextFactoryName)
Sets the source application context factory by name.- Parameters:
sourceApplicationContextFactoryName- the name of the sourceApplicationContextFactory to set
-
setSourceApplicationContextFactory
public void setSourceApplicationContextFactory(ApplicationContextFactory sourceApplicationContextFactory)
Sets the source application context factory by reference- Parameters:
sourceApplicationContextFactory- the sourceApplicationContextFactory to set
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setSourceBeanName
public void setSourceBeanName(java.lang.String sourceBeanName)
Sets an optional bean name to target all calls to in the source application context. If not set, an appropriate bean is looked up based on method class.- Parameters:
sourceBeanName- the sourceBeanName to set
-
setDefaultBean
public void setDefaultBean(java.lang.Object defaultBean)
Sets an optional default bean to be used if the target bean is not found. Generally used when a subsystem does not exist.- Parameters:
defaultBean- the defaultBean to set
-
locateBean
protected java.lang.Object locateBean(org.aopalliance.intercept.MethodInvocation mi)
-
-