List of usage examples for org.springframework.context Lifecycle interface-usage
From source file org.archive.crawler.frontier.precedence.PreloadedUriPrecedencePolicy.java
/**
* UriPrecedencePolicy which assigns URIs a precedence from a value that
* was preloaded for them into the uri-history database.
*
* NOTE: Because this is a Lifecycle bean requiring start and stop, it
* should not be instantiated as an anonymous inner bean. Rather, it
From source file com.joshlong.esb.springintegration.modules.net.feed.FeedReaderMessageSource.java
/**
* The idea behind this class is that {@link org.springframework.integration.message.MessageSource#receive()} will only
* return a {@link SyndFeed} when the event listener tells us that a feed has been updated. If we can ascertain that
* it's been updated, then we can add the item to the {@link java.util.Queue} implementation.
*
* @author <a href="mailto:josh@joshlong.com">Josh Long</a>
From source file apiserver.core.common.messageHandlers.PreOrPostWireTap.java
/** * User: mnimer * Date: 9/21/12 */ public class PreOrPostWireTap extends ChannelInterceptorAdapter implements Lifecycle { private static final Log logger = LogFactory.getLog(PreOrPostWireTap.class);
From source file net.kenblair.scheduler.service.Scheduler.java
/**
* A Spring based scheduler utilizing an injected {@link TaskScheduler} for executing {@link Schedulable} beans.
* <p/>
* Jobs are retrieved from an injected {@link ScheduledJobRepository} and scheduled according to their trigger. A job
* that is already scheduled but returns {@code false} from {@link ScheduledJob#equalTo(ScheduledJob)} will be
* canceled and rescheduled.
From source file com.cisco.cta.taxii.adapter.smoketest.SmokeTestLifecycle.java
@RequiredArgsConstructor @Slf4j public class SmokeTestLifecycle implements Lifecycle { private static final String RESOURCE = "/com/cisco/cta/taxii/adapter/smoketest/taxii-poll-response-smoke-test.xml";
From source file com.joshlong.esb.springintegration.modules.net.feed.FeedEntryReaderMessageSource.java
/**
* this is a slightly different use case than {@link com.joshlong.esb.springintegration.modules.net.feed.FeedReaderMessageSource}.
* This returns which entries are added, which is a more nuanced use case requiring some of our own caching.
* <em>NB:</em> this does <strong>not</strong> somehow detect entry removal from a feed.
*
* @author <a href="mailto:josh@joshlong.com">Josh Long</a>
From source file org.archive.modules.fetcher.AbstractCookieStorage.java
/** * @author pjack * */ public abstract class AbstractCookieStorage implements CookieStorage, Lifecycle, // InitializingBean, Closeable {
From source file org.jbr.commons.container.http.HttpServerSupport.java
/** * Provides an embeddable Jetty web server. * * @author <a href="mailto:brulejr@gmail.com">Jon Brule</a> */ public abstract class HttpServerSupport implements Lifecycle, ApplicationContextAware {
From source file io.pivotal.strepsirrhini.chaosloris.destroyer.DestructionScheduler.java
@Component final class DestructionScheduler implements HealthIndicator, Lifecycle { private final Logger logger = LoggerFactory.getLogger(this.getClass()); private final DestroyerFactory destroyerFactory;
From source file com.shopzilla.spring.messaging.jms.mdp.batch.BatchMessageListenerContainer.java
/**
* Modelled on Spring's {@link org.springframework.jms.listener.AbstractMessageListenerContainer} this supports the batching of
* messages before being sent to an {@link com.shopzilla.spring.messaging.jms.mdp.batch.BatchMessageListener} with a timeout period to ensure
* timely delivery of messages when a batch is incomplete.
*
* <p>