Class AcrossContextResolvingBeanTargetSource
java.lang.Object
org.springframework.aop.target.AbstractLazyCreationTargetSource
com.foreach.across.autoconfigure.support.AcrossContextResolvingBeanTargetSource
- All Implemented Interfaces:
org.springframework.aop.TargetClassAware,org.springframework.aop.TargetSource
public class AcrossContextResolvingBeanTargetSource
extends org.springframework.aop.target.AbstractLazyCreationTargetSource
Resolves the actual target bean from the Across context upon first use.
Depending on the property values will resolve the target bean by name or type.
If a module name is specified it will retrieve the target from that module
specifically, else will attempt to resolve in the collection of exposed beans.
- Since:
- 1.0.2
- Author:
- Arne Vandamme
-
Field Summary
Fields inherited from class org.springframework.aop.target.AbstractLazyCreationTargetSource
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectvoidsetBeanName(String beanName) voidsetBeanRegistry(com.foreach.across.core.context.registry.AcrossContextBeanRegistry beanRegistry) voidsetBeanType(Class<?> beanType) voidsetModuleName(String moduleName) Methods inherited from class org.springframework.aop.target.AbstractLazyCreationTargetSource
getTarget, getTargetClass, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.TargetSource
isStatic, releaseTarget
-
Constructor Details
-
AcrossContextResolvingBeanTargetSource
public AcrossContextResolvingBeanTargetSource()
-
-
Method Details
-
createObject
- Specified by:
createObjectin classorg.springframework.aop.target.AbstractLazyCreationTargetSource
-
setBeanRegistry
public void setBeanRegistry(com.foreach.across.core.context.registry.AcrossContextBeanRegistry beanRegistry) -
setModuleName
-
setBeanType
-
setBeanName
-