Spring Data for VMware GemFire
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:
-
MethodMethodInterceptorBeanClassLoaderAwareFactoryBeanAbstractFactoryBeanSupport
-
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(org.aopalliance.intercept.MethodInvocation invocation) protected ObjectinvokeFunction(Method method, Object[] args) protected booleanprotected booleanisInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value) protected booleanisIterable(Object value) protected booleanisNotInstanceOfFunctionReturnType(org.aopalliance.intercept.MethodInvocation invocation, Object value) protected voidonInit()protected ObjectresolveResult(org.aopalliance.intercept.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:
-
BeanClassLoaderAware.setBeanClassLoader(ClassLoader)ClassLoaderClass
-
getFunctionExecutionInterface
-
getFunctionExecutionMethodMetadata
@NonNull protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> getFunctionExecutionMethodMetadata() -
getGemfireFunctionOperations
-
invoke
- Specified by:
invokein 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:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<Object>
-
onInit
protected void onInit()
-