Class CoherencePublisherProxyFactoryBean
- java.lang.Object
-
- com.oracle.coherence.spring.messaging.CoherencePublisherProxyFactoryBean
-
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor,Aware,BeanClassLoaderAware,DisposableBean,FactoryBean<Object>
public class CoherencePublisherProxyFactoryBean extends Object implements FactoryBean<Object>, MethodInterceptor, BeanClassLoaderAware, DisposableBean
Generates a proxy for the provided,CoherencePublisherannotated, interface.- Since:
- 3.0
- Author:
- Vaso Putica
-
-
Field Summary
Fields Modifier and Type Field Description protected Loglogger-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description CoherencePublisherProxyFactoryBean(Class<?> serviceInterface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()ObjectgetObject()Class<?>getObjectType()Objectinvoke(MethodInvocation invocation)protected voidonInit()voidsetBeanClassLoader(ClassLoader classLoader)voidsetMaxBlock(String maxBlock)voidsetProxyDefaultMethods(boolean proxyDefaultMethods)Indicate ifdefaultmethods on the interface should be proxied as well.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
-
-
-
Field Detail
-
logger
protected final Log logger
-
-
Constructor Detail
-
CoherencePublisherProxyFactoryBean
public CoherencePublisherProxyFactoryBean(Class<?> serviceInterface)
-
-
Method Detail
-
setMaxBlock
public void setMaxBlock(String maxBlock)
-
setProxyDefaultMethods
public void setProxyDefaultMethods(boolean proxyDefaultMethods)
Indicate ifdefaultmethods on the interface should be proxied as well.- Parameters:
proxyDefaultMethods- the boolean flag to proxy default methods
-
invoke
@Nullable public Object invoke(@Nonnull MethodInvocation invocation) throws Throwable
- Specified by:
invokein interfaceMethodInterceptor- Throws:
Throwable
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoaderin interfaceBeanClassLoaderAware
-
getObject
public Object getObject() throws Exception
- Specified by:
getObjectin interfaceFactoryBean<Object>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<Object>
-
onInit
protected void onInit()
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceDisposableBean- Throws:
Exception
-
-