Package io.hekate.spring.bean.lock
Class LockRegionBean
- java.lang.Object
-
- io.hekate.spring.bean.HekateBaseBean<LockRegion>
-
- io.hekate.spring.bean.lock.LockRegionBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.FactoryBean<LockRegion>
,org.springframework.beans.factory.InitializingBean
public class LockRegionBean extends HekateBaseBean<LockRegion> implements org.springframework.beans.factory.InitializingBean
ImportsLockRegion
into a Spring context.
-
-
Constructor Summary
Constructors Constructor Description LockRegionBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
LockRegion
getObject()
Class<LockRegion>
getObjectType()
String
getRegion()
Returns the lock region name (seesetRegion(String)
).void
setRegion(String region)
Sets the name of a lock region that should imported into a Spring context.-
Methods inherited from class io.hekate.spring.bean.HekateBaseBean
getSource, isSingleton, setBeanFactory, setSource
-
-
-
-
Method Detail
-
getObject
public LockRegion getObject() throws Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<LockRegion>
- Throws:
Exception
-
getObjectType
public Class<LockRegion> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<LockRegion>
-
getRegion
public String getRegion()
Returns the lock region name (seesetRegion(String)
).- Returns:
- Lock region name.
-
setRegion
public void setRegion(String region)
Sets the name of a lock region that should imported into a Spring context.- Parameters:
region
- Lock region name.- See Also:
LockRegionConfig.setName(String)
-
-