org.kuali.rice.ken.core
Class NotificationLifeCycle
java.lang.Object
org.kuali.rice.ken.core.BaseLifecycle
org.kuali.rice.ken.core.LifecycleBean
org.kuali.rice.ken.core.NotificationLifeCycle
- All Implemented Interfaces:
- Lifecycle, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class NotificationLifeCycle
- extends LifecycleBean
- implements org.springframework.beans.factory.BeanFactoryAware
Eager-initializing singleton bean that performs some notification startup operations
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Field Summary |
private DataSource |
dataSource
|
private static org.apache.log4j.Logger |
LOG
|
private org.springframework.beans.factory.BeanFactory |
theFactory
|
private org.springframework.transaction.PlatformTransactionManager |
txMgr
|
Method Summary |
protected org.springframework.transaction.support.TransactionTemplate |
createNewTransaction()
Helper method for creating a TransactionTemplate initialized to create
a new transaction |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory theFactory)
|
void |
setDataSource(DataSource dataSource)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager txMgr)
|
void |
start()
This method starts the lifecycle. |
void |
stop()
This method stops the lifecycle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
theFactory
private org.springframework.beans.factory.BeanFactory theFactory
txMgr
private org.springframework.transaction.PlatformTransactionManager txMgr
dataSource
private DataSource dataSource
NotificationLifeCycle
public NotificationLifeCycle()
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory theFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
- See Also:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager txMgr)
setDataSource
public void setDataSource(DataSource dataSource)
createNewTransaction
protected org.springframework.transaction.support.TransactionTemplate createNewTransaction()
- Helper method for creating a TransactionTemplate initialized to create
a new transaction
- Returns:
- a TransactionTemplate initialized to create a new transaction
start
public void start()
throws Exception
- Description copied from interface:
Lifecycle
- This method starts the lifecycle.
- Specified by:
start
in interface Lifecycle
- Overrides:
start
in class BaseLifecycle
- Throws:
Exception
- See Also:
BaseLifecycle.start()
stop
public void stop()
throws Exception
- Description copied from interface:
Lifecycle
- This method stops the lifecycle.
- Specified by:
stop
in interface Lifecycle
- Overrides:
stop
in class BaseLifecycle
- Throws:
Exception
- See Also:
BaseLifecycle.stop()
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.