Package io.hekate.spring.bean
Class HekateBaseBean<T>
- java.lang.Object
-
- io.hekate.spring.bean.HekateBaseBean<T>
-
- Type Parameters:
T
- Imported bean type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<T>
- Direct Known Subclasses:
ClusterServiceBean
,CodecServiceBean
,CoordinationServiceBean
,ElectionServiceBean
,LockBean
,LockRegionBean
,LockServiceBean
,MessagingChannelBean
,MessagingServiceBean
,NetworkConnectorBean
,NetworkServiceBean
,RpcClientBean
,RpcServiceBean
public abstract class HekateBaseBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.BeanFactoryAware
Base class for beans that provide support for importingHekate
components and services into a Spring context.
-
-
Constructor Summary
Constructors Constructor Description HekateBaseBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hekate
getSource()
Return theHekate
instance that will be used as a source of imported components and services (seesetSource(Hekate)
).boolean
isSingleton()
Returnstrue
.void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
void
setSource(Hekate source)
Sets theHekate
instance that will be used as a source of imported components and services.
-
-
-
Method Detail
-
isSingleton
public boolean isSingleton()
Returnstrue
.- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<T>
- Returns:
true
-
getSource
public Hekate getSource()
Return theHekate
instance that will be used as a source of imported components and services (seesetSource(Hekate)
).- Returns:
Hekate
instance that will be used as a source of imported components and services.
-
setSource
public void setSource(Hekate source)
Sets theHekate
instance that will be used as a source of imported components and services. If not specified then it will be auto-discovered viaBeanFactory.getBean(Class)
.- Parameters:
source
-Hekate
instance that will be used as a source of imported components and services.
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
-
-