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,CoherencePublisher
annotated, interface.- Since:
- 3.0
- Author:
- Vaso Putica, Gunnar Hillert
-
-
Field Summary
Fields Modifier and Type Field Description protected Log
logger
-
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 void
destroy()
Object
getObject()
Class<?>
getObjectType()
Object
invoke(MethodInvocation invocation)
protected void
onInit()
void
setBeanClassLoader(ClassLoader classLoader)
void
setMaxBlock(String maxBlock)
void
setProxyDefaultMethods(boolean proxyDefaultMethods)
Indicate ifdefault
methods 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 ifdefault
methods 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:
invoke
in interfaceMethodInterceptor
- Throws:
Throwable
-
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interfaceBeanClassLoaderAware
-
getObject
public Object getObject() throws Exception
- Specified by:
getObject
in interfaceFactoryBean<Object>
- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<Object>
-
onInit
protected void onInit()
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceDisposableBean
-
-