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:
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<Object>,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
CryptodocSubsystemProxyFactory
public class SubsystemProxyFactory
extends org.springframework.aop.framework.ProxyFactoryBean
implements org.springframework.context.ApplicationContextAware
A factory bean, normally used in conjunction with
ChildApplicationContextFactory allowing 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:
-
Field Summary
Fields inherited from class org.springframework.aop.framework.ProxyFactoryBean
GLOBAL_SUFFIX, loggerFields inherited from class org.springframework.aop.framework.AdvisedSupport
EMPTY_TARGET_SOURCEFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectlocateBean(org.aopalliance.intercept.MethodInvocation mi) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDefaultBean(Object defaultBean) Sets an optional default bean to be used if the target bean is not found.voidsetInterfaces(Class... interfaces) voidsetSourceApplicationContextFactory(ApplicationContextFactory sourceApplicationContextFactory) Sets the source application context factory by referencevoidsetSourceApplicationContextFactoryName(String sourceApplicationContextFactoryName) Sets the source application context factory by name.voidsetSourceBeanName(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, getObject, getObjectType, getProxy, isSingleton, setAdvisorAdapterRegistry, setAutodetectInterfaces, setBeanClassLoader, setBeanFactory, setFrozen, setInterceptorNames, setProxyClassLoader, setProxyInterfaces, setSingleton, setTargetNameMethods inherited from class org.springframework.aop.framework.ProxyCreatorSupport
addListener, createAopProxy, getAopProxyFactory, isActive, removeListener, setAopProxyFactoryMethods inherited from class org.springframework.aop.framework.AdvisedSupport
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisorCount, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toStringMethods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.framework.Advised
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy
-
Constructor Details
-
SubsystemProxyFactory
public SubsystemProxyFactory()Instantiates a new managed subsystem proxy factory.
-
-
Method Details
-
setInterfaces
- Overrides:
setInterfacesin classorg.springframework.aop.framework.AdvisedSupport
-
setSourceApplicationContextFactoryName
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
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
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
-