Class AbstractWANComponentFactoryBean<T>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<T>
org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean<T>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<T>
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
AsyncEventQueueFactoryBean
,GatewayReceiverFactoryBean
,GatewaySenderFactoryBean
public abstract class AbstractWANComponentFactoryBean<T>
extends AbstractFactoryBeanSupport<T>
implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Abstract base class for WAN Gateway objects.
- See Also:
-
Cache
GemFireCache
DisposableBean
InitializingBean
AbstractFactoryBeanSupport
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.geode.cache.Cache
protected Object
protected final org.slf4j.Logger
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
ModifierConstructorDescriptionprotected
protected
AbstractWANComponentFactoryBean
(org.apache.geode.cache.GemFireCache cache) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
void
destroy()
protected abstract void
doInit()
org.apache.geode.cache.Cache
getCache()
getName()
void
setBeanName
(String beanName) Sets thebean name
assigned to thisFactoryBean
as declared in the Spring container.void
setCache
(org.apache.geode.cache.Cache cache) void
setFactory
(Object factory) void
Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory
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
getObject, getObjectType
-
Field Details
-
cache
@Autowired protected org.apache.geode.cache.Cache cache -
logger
protected final org.slf4j.Logger logger -
factory
-
-
Constructor Details
-
AbstractWANComponentFactoryBean
protected AbstractWANComponentFactoryBean() -
AbstractWANComponentFactoryBean
protected AbstractWANComponentFactoryBean(org.apache.geode.cache.GemFireCache cache)
-
-
Method Details
-
setBeanName
Description copied from class:AbstractFactoryBeanSupport
Sets thebean name
assigned to thisFactoryBean
as declared in the Spring container.- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
- Overrides:
setBeanName
in classAbstractFactoryBeanSupport<T>
- Parameters:
beanName
-bean name
assigned to thisFactoryBean
as declared in the Spring container.- See Also:
-
BeanNameAware.setBeanName(String)
String
-
getCache
public org.apache.geode.cache.Cache getCache() -
setCache
public void setCache(org.apache.geode.cache.Cache cache) -
setFactory
-
setName
-
getName
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
doInit
- Throws:
Exception
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-