Class GemfireFunctionProxyFactoryBean

java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<Object>
org.springframework.data.gemfire.function.execution.GemfireFunctionProxyFactoryBean
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean<Object>
Direct Known Subclasses:
OnRegionFunctionProxyFactoryBean

public class GemfireFunctionProxyFactoryBean extends AbstractFactoryBeanSupport<Object> implements org.aopalliance.intercept.MethodInterceptor
A Proxy FactoryBean for all non-Region Function Execution interfaces.
See Also:
  • Constructor Details

  • Method Details

    • getBeanClassLoader

      @NonNull public ClassLoader getBeanClassLoader()
      Description copied from class: AbstractFactoryBeanSupport
      Returns a reference to the ClassLoader used by the Spring container to load bean classes.
      Overrides:
      getBeanClassLoader in class AbstractFactoryBeanSupport<Object>
      Returns:
      the ClassLoader used by the Spring container to load bean classes.
      See Also:
    • getFunctionExecutionInterface

      protected Class<?> getFunctionExecutionInterface()
    • getFunctionExecutionMethodMetadata

      @NonNull protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> getFunctionExecutionMethodMetadata()
    • getGemfireFunctionOperations

      @NonNull protected GemfireFunctionOperations getGemfireFunctionOperations()
    • invoke

      @Nullable public Object invoke(@NonNull org.aopalliance.intercept.MethodInvocation invocation)
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
    • invokeFunction

      @Nullable protected Object invokeFunction(@NonNull Method method, @NonNull Object[] args)
    • isFunctionExecutedOnSingleServerOrSingleMember

      protected boolean isFunctionExecutedOnSingleServerOrSingleMember(@NonNull Method method)
    • resolveResult

      protected Object resolveResult(org.aopalliance.intercept.MethodInvocation invocation, Object result)
    • resolveSingleResultIfPossible

      protected Object resolveSingleResultIfPossible(Iterable<?> results)
    • isInstanceOfFunctionReturnType

      protected boolean isInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value)
    • isNotInstanceOfFunctionReturnType

      protected boolean isNotInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value)
    • isIterable

      protected boolean isIterable(Object value)
    • getObject

      public Object getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<Object>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
    • onInit

      protected void onInit()