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:
-
Method
MethodInterceptor
BeanClassLoaderAware
FactoryBean
AbstractFactoryBeanSupport
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionGemfireFunctionProxyFactoryBean
(Class<?> functionExecutionInterface, GemfireFunctionOperations gemfireFunctionOperations) Constructs a new instance ofGemfireFunctionProxyFactoryBean
initialized with the givenFunction Excution Interface
andGemfireFunctionOperations
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to theClassLoader
used 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 GemfireFunctionOperations
Class<?>
invoke
(org.aopalliance.intercept.MethodInvocation invocation) protected Object
invokeFunction
(Method method, Object[] args) protected boolean
protected boolean
isInstanceOfFunctionReturnType
(org.aopalliance.intercept.MethodInvocation invocation, Object value) protected boolean
isIterable
(Object value) protected boolean
isNotInstanceOfFunctionReturnType
(org.aopalliance.intercept.MethodInvocation invocation, Object value) protected void
onInit()
protected Object
resolveResult
(org.aopalliance.intercept.MethodInvocation invocation, Object result) protected Object
resolveSingleResultIfPossible
(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 ofGemfireFunctionProxyFactoryBean
initialized with the givenFunction Excution Interface
andGemfireFunctionOperations
.- Parameters:
functionExecutionInterface
-Function Execution Interface
to proxy; must not be null.gemfireFunctionOperations
- template used to execute theFunction
.- Throws:
IllegalArgumentException
- if theFunction Execution Interface
is null or theFunction Execution Type
is not an actual interface.- See Also:
-
-
Method Details
-
getBeanClassLoader
Description copied from class:AbstractFactoryBeanSupport
Returns a reference to theClassLoader
used by the Spring container to load beanclasses
.- Overrides:
getBeanClassLoader
in classAbstractFactoryBeanSupport<Object>
- Returns:
- the
ClassLoader
used by the Spring container to load beanclasses
. - See Also:
-
BeanClassLoaderAware.setBeanClassLoader(ClassLoader)
ClassLoader
Class
-
getFunctionExecutionInterface
-
getFunctionExecutionMethodMetadata
@NonNull protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> getFunctionExecutionMethodMetadata() -
getGemfireFunctionOperations
-
invoke
- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
-
invokeFunction
-
isFunctionExecutedOnSingleServerOrSingleMember
-
resolveResult
-
resolveSingleResultIfPossible
-
isInstanceOfFunctionReturnType
protected boolean isInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value) -
isNotInstanceOfFunctionReturnType
protected boolean isNotInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value) -
isIterable
-
getObject
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
onInit
protected void onInit()
-