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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
void
setBeanName
(String beanName) void
setBeanRegistry
(com.foreach.across.core.context.registry.AcrossContextBeanRegistry beanRegistry) void
setBeanType
(Class<?> beanType) void
setModuleName
(String moduleName) Methods inherited from class org.springframework.aop.target.AbstractLazyCreationTargetSource
getTarget, getTargetClass, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.aop.TargetSource
isStatic, releaseTarget
-
Constructor Details
-
AcrossContextResolvingBeanTargetSource
public AcrossContextResolvingBeanTargetSource()
-
-
Method Details
-
createObject
- Specified by:
createObject
in classorg.springframework.aop.target.AbstractLazyCreationTargetSource
-
setBeanRegistry
public void setBeanRegistry(com.foreach.across.core.context.registry.AcrossContextBeanRegistry beanRegistry) -
setModuleName
-
setBeanType
-
setBeanName
-