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
  • Constructor Details

    • AcrossContextResolvingBeanTargetSource

      public AcrossContextResolvingBeanTargetSource()
  • Method Details

    • createObject

      protected Object createObject()
      Specified by:
      createObject in class org.springframework.aop.target.AbstractLazyCreationTargetSource
    • setBeanRegistry

      public void setBeanRegistry(com.foreach.across.core.context.registry.AcrossContextBeanRegistry beanRegistry)
    • setModuleName

      public void setModuleName(String moduleName)
    • setBeanType

      public void setBeanType(Class<?> beanType)
    • setBeanName

      public void setBeanName(String beanName)