org.jboss.seam.cron.spi
Interface CronProviderLifecycle


public interface CronProviderLifecycle

If you are implementing a provider for scheduled or asynchronous method invocation, and you need to initialize and tear down some infrastructure before and after you provider can be used, then provide an implementation of this interface. It is usually most convenient to add this interface to your #CronSchedulingProvider, but it could be provided as a separate class if you wish. You could even provide multiple implementations of this interface if desired, noting that the order in which they are initialized and destroyed cannot be guaranteed.

Author:
peteroyle

Method Summary
 void destroyProvider()
          Shutdown the underlying provider, called on application close/undeployment.
 void initProvider()
          Initializes the underlying provider.
 

Method Detail

initProvider

void initProvider()
                  throws CronProviderInitialisationException
Initializes the underlying provider.

Throws:
CronProviderInitialisationException

destroyProvider

void destroyProvider()
                     throws CronProviderDestructionException
Shutdown the underlying provider, called on application close/undeployment.

Throws:
CronProviderDestructionException


Copyright © 2011 Seam Framework. All Rights Reserved.