Class GemfireFunctionProxyFactoryBean
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<Object>
org.springframework.data.gemfire.function.execution.GemfireFunctionProxyFactoryBean
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor,Aware,BeanClassLoaderAware,BeanFactoryAware,BeanNameAware,FactoryBean<Object>
- Direct Known Subclasses:
OnRegionFunctionProxyFactoryBean
public class GemfireFunctionProxyFactoryBean
extends AbstractFactoryBeanSupport<Object>
implements MethodInterceptor
A Proxy
FactoryBean for all non-Region Function Execution interfaces.- Author:
- David Turanski, John Blum, Patrick Johnson
- See Also:
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETONFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionGemfireFunctionProxyFactoryBean(Class<?> functionExecutionInterface, GemfireFunctionOperations gemfireFunctionOperations) Constructs a new instance ofGemfireFunctionProxyFactoryBeaninitialized with the givenFunction Excution InterfaceandGemfireFunctionOperations. -
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to theClassLoaderused by the Spring container to load beanclasses.protected Class<?>protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata>protected GemfireFunctionOperationsClass<?>invoke(MethodInvocation invocation) protected ObjectinvokeFunction(Method method, Object[] args) protected booleanprotected booleanisInstanceOfFunctionReturnType(MethodInvocation invocation, Object value) protected booleanisIterable(Object value) protected booleanisNotInstanceOfFunctionReturnType(MethodInvocation invocation, Object value) protected voidonInit()protected ObjectresolveResult(MethodInvocation invocation, Object result) protected ObjectresolveSingleResultIfPossible(Iterable<?> results) Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
GemfireFunctionProxyFactoryBean
public GemfireFunctionProxyFactoryBean(@NonNull Class<?> functionExecutionInterface, @NonNull GemfireFunctionOperations gemfireFunctionOperations) Constructs a new instance ofGemfireFunctionProxyFactoryBeaninitialized with the givenFunction Excution InterfaceandGemfireFunctionOperations.- Parameters:
functionExecutionInterface-Function Execution Interfaceto proxy; must not be null.gemfireFunctionOperations- template used to execute theFunction.- Throws:
IllegalArgumentException- if theFunction Execution Interfaceis null or theFunction Execution Typeis not an actual interface.- See Also:
-
-
Method Details
-
getBeanClassLoader
Description copied from class:AbstractFactoryBeanSupportReturns a reference to theClassLoaderused by the Spring container to load beanclasses.- Overrides:
getBeanClassLoaderin classAbstractFactoryBeanSupport<Object>- Returns:
- the
ClassLoaderused by the Spring container to load beanclasses. - See Also:
-
getFunctionExecutionInterface
-
getFunctionExecutionMethodMetadata
@NonNull protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> getFunctionExecutionMethodMetadata() -
getGemfireFunctionOperations
-
invoke
- Specified by:
invokein interfaceMethodInterceptor
-
invokeFunction
-
isFunctionExecutedOnSingleServerOrSingleMember
-
resolveResult
-
resolveSingleResultIfPossible
-
isInstanceOfFunctionReturnType
-
isNotInstanceOfFunctionReturnType
-
isIterable
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<Object>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<Object>
-
onInit
protected void onInit()
-