Example usage for org.springframework.context Lifecycle interface-usage

List of usage examples for org.springframework.context Lifecycle interface-usage

Introduction

In this page you can find the example usage for org.springframework.context Lifecycle interface-usage.

Usage

From source file com.cisco.cta.taxii.adapter.RunAndExit.java

/**
 * Delegates to a #{@link java.lang.Runnable} instance, then stops the application.
 */
public class RunAndExit implements Lifecycle {

    private final Runnable delegate;

From source file siia.monitoring.controlbus.FilePoller.java

/**
 * This does not poll files. It simply demonstrates that any
 * Lifecycle implementation can be managed via the control bus.
 *
 * @author Mark Fisher
 */

From source file info.joseluismartin.gtc.EmbeddedDerbyShutdown.java

/**
 * Lifecycle Spring listener to close Derby database connectins.
 * 
 * @author Jose Luis Martin - (jlm@joseluismartin.info)
 */
public class EmbeddedDerbyShutdown implements Lifecycle {

From source file org.apache.servicemix.jbi.cluster.requestor.JmsRequestorPool.java

public interface JmsRequestorPool extends Lifecycle {

    Transacted getTransacted();

    void setListener(JmsRequestorListener listener);

From source file org.archive.modules.fetcher.CookieStorage.java

public interface CookieStorage extends Lifecycle {

    SortedMap<String, Cookie> getCookiesMap();

    void saveCookiesMap(Map<String, Cookie> map);

From source file org.rotarysource.core.sep.SepEngine.java

public interface SepEngine extends Lifecycle {

    /**
     * <p>
     * Add the given <code>{@link org.rotarysource.core.sep.job.JobDescription}</code> to the
     * Scheduler, and use its data to create internally a <code>JobDetail</code>,

From source file org.bitcoinrt.client.AbstractMtgoxClient.java

public abstract class AbstractMtgoxClient implements Lifecycle, InitializingBean {

    protected static final String MTGOX_URL = "ws://websocket.mtgox.com/mtgox";
    protected static final String MTGOX_TRADES_CHANNEL = "dbf1dee9-4f2e-4a08-8cb7-748919a71b21";
    protected static final String MTGOX_TICKER_CHANNEL = "d5f06780-30a8-4a48-a2f8-7ed181b4a13f";
    protected static final String MTGOX_DEPTH_CHANNEL = "24e67e0d-1cad-4cc0-9e7a-f8523ef460fe";

From source file org.hydracache.server.httpd.AsyncHttpLightServer.java

/**
 * An ultra-light and non-blocking async HTTP server built for serving
 * client-server
 * 
 * @author nzhu
 * 

From source file ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.java

/**
 * MariaDB4jService extension suitable for use in Spring Framework-based applications.
 * 
 * <p>Other than implementing {@link Lifecycle} to get auto-started, this class allows applications
 * using it to programmatically set a default port/socket/data- &amp; base directory in their
 * {@link Configuration}, yet let end-users override those via the Spring Values mariaDB4j.port,

From source file org.archive.modules.net.BdbServerCache.java

/**
 * ServerCache backed by BDB big maps; the usual choice for crawls.
 * 
 * @contributor pjack
 * @contributor gojomo
 */