org.springframework.data.gemfire.wan
Class AbstractWANComponentFactoryBean<T>

java.lang.Object
  extended by org.springframework.data.gemfire.wan.AbstractWANComponentFactoryBean<T>
All Implemented Interfaces:
Aware, BeanNameAware, DisposableBean, FactoryBean<T>, InitializingBean
Direct Known Subclasses:
AsyncEventQueueFactoryBean, GatewayHubFactoryBean, GatewayReceiverFactoryBean, GatewaySenderFactoryBean

public abstract class AbstractWANComponentFactoryBean<T>
extends Object
implements FactoryBean<T>, InitializingBean, BeanNameAware, DisposableBean

Base class for GemFire WAN Gateway component factory beans.


Field Summary
protected  com.gemstone.gemfire.cache.Cache cache
           
protected  Object factory
           
protected  org.apache.commons.logging.Log log
           
protected static List<String> VALID_ORDER_POLICIES
           
 
Constructor Summary
protected AbstractWANComponentFactoryBean(com.gemstone.gemfire.cache.Cache cache)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
protected abstract  void doInit()
           
 String getName()
           
abstract  T getObject()
           
abstract  Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setBeanName(String beanName)
           
 void setFactory(Object factory)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALID_ORDER_POLICIES

protected static final List<String> VALID_ORDER_POLICIES

log

protected org.apache.commons.logging.Log log

cache

protected final com.gemstone.gemfire.cache.Cache cache

factory

protected Object factory
Constructor Detail

AbstractWANComponentFactoryBean

protected AbstractWANComponentFactoryBean(com.gemstone.gemfire.cache.Cache cache)
Method Detail

setName

public void setName(String name)

getName

public String getName()

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

setBeanName

public final void setBeanName(String beanName)
Specified by:
setBeanName in interface BeanNameAware

afterPropertiesSet

public final void afterPropertiesSet()
                              throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

doInit

protected abstract void doInit()
                        throws Exception
Throws:
Exception

getObject

public abstract T getObject()
                     throws Exception
Specified by:
getObject in interface FactoryBean<T>
Throws:
Exception

getObjectType

public abstract Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<T>

isSingleton

public final boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<T>

setFactory

public void setFactory(Object factory)