public class GemfireFunctionProxyFactoryBean extends AbstractFactoryBeanSupport<Object> implements MethodInterceptor
FactoryBean for all non-Region Function Execution interfaces.Method,
MethodInterceptor,
BeanClassLoaderAware,
FactoryBean,
AbstractFactoryBeanSupportDEFAULT_SINGLETONOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
GemfireFunctionProxyFactoryBean(Class<?> functionExecutionInterface,
GemfireFunctionOperations gemfireFunctionOperations)
Constructs a new instance of the
GemfireFunctionProxyFactoryBean initialized with the given
Function Excution Interface and GemfireFunctionOperations. |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getBeanClassLoader()
Returns a reference to the
ClassLoader used by the Spring container to load and create bean classes. |
protected Class<?> |
getFunctionExecutionInterface() |
protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> |
getFunctionExecutionMethodMetadata() |
protected GemfireFunctionOperations |
getGemfireFunctionOperations() |
Object |
getObject() |
Class<?> |
getObjectType() |
Object |
invoke(MethodInvocation invocation) |
protected Object |
invokeFunction(Method method,
Object[] args) |
protected boolean |
isInstanceOfFunctionReturnType(MethodInvocation invocation,
Object value) |
protected boolean |
isIterable(Object value) |
protected boolean |
isNotInstanceOfFunctionReturnType(MethodInvocation invocation,
Object value) |
protected void |
onInit() |
protected Object |
resolveResult(MethodInvocation invocation,
Object result) |
protected Object |
resolveSingleResultIfPossible(Iterable<?> results) |
getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanNamepublic GemfireFunctionProxyFactoryBean(Class<?> functionExecutionInterface, GemfireFunctionOperations gemfireFunctionOperations)
GemfireFunctionProxyFactoryBean initialized with the given
Function Excution Interface and GemfireFunctionOperations.functionExecutionInterface - Function Execution Interface to proxy.gemfireFunctionOperations - Template class used to delegate the Function invocation.IllegalArgumentException - if the Function Execution Interface is null
or the Function Execution Type is not an actual interface.GemfireFunctionOperationspublic ClassLoader getBeanClassLoader()
AbstractFactoryBeanSupportClassLoader used by the Spring container to load and create bean classes.getBeanClassLoader in class AbstractFactoryBeanSupport<Object>ClassLoader used by the Spring container to load and create bean classes.BeanClassLoaderAware.setBeanClassLoader(ClassLoader),
ClassLoaderprotected Class<?> getFunctionExecutionInterface()
protected org.springframework.data.gemfire.function.execution.FunctionExecutionMethodMetadata<org.springframework.data.gemfire.function.execution.MethodMetadata> getFunctionExecutionMethodMetadata()
protected GemfireFunctionOperations getGemfireFunctionOperations()
public Object invoke(MethodInvocation invocation)
invoke in interface MethodInterceptorprotected Object resolveResult(MethodInvocation invocation, Object result)
protected boolean isInstanceOfFunctionReturnType(MethodInvocation invocation, Object value)
protected boolean isNotInstanceOfFunctionReturnType(MethodInvocation invocation, Object value)
protected boolean isIterable(Object value)
public Object getObject() throws Exception
getObject in interface FactoryBean<Object>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<Object>protected void onInit()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.