org.kuali.rice.ken.core
Class NotificationLifeCycle

java.lang.Object
  extended by org.kuali.rice.ken.core.BaseLifecycle
      extended by org.kuali.rice.ken.core.LifecycleBean
          extended by 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
           
 
Constructor Summary
NotificationLifeCycle()
           
 
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 org.kuali.rice.ken.core.LifecycleBean
afterPropertiesSet, destroy
 
Methods inherited from class org.kuali.rice.ken.core.BaseLifecycle
isStarted, setStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NotificationLifeCycle

public NotificationLifeCycle()
Method Detail

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.