|
PicoContainer example source code file (LifecycleStrategy.java)
The PicoContainer LifecycleStrategy.java source code/***************************************************************************** * Copyright (C) PicoContainer Organization. All rights reserved. * * ------------------------------------------------------------------------- * * The software in this package is published under the terms of the BSD * * style license a copy of which has been included with this distribution in * * the LICENSE.txt file. * *****************************************************************************/ package org.picocontainer; /** * An interface which specifies the lifecyle strategy on the component instance. * Lifecycle strategies are used by component adapters to delegate the lifecyle * operations on the component instances. * * @author Paul Hammant * @author Peter Royal * @author Jörg Schaible * @author Mauro Talevi * @see org.picocontainer.Startable * @see org.picocontainer.Disposable */ public interface LifecycleStrategy { /** * Invoke the "start" method on the component instance if this is startable. * It is up to the implementation of the strategy what "start" and "startable" means. * * @param component the instance of the component to start */ void start(Object component); /** * Invoke the "stop" method on the component instance if this is stoppable. * It is up to the implementation of the strategy what "stop" and "stoppable" means. * * @param component the instance of the component to stop */ void stop(Object component); /** * Invoke the "dispose" method on the component instance if this is disposable. * It is up to the implementation of the strategy what "dispose" and "disposable" means. * * @param component the instance of the component to dispose */ void dispose(Object component); /** * Test if a component instance has a lifecycle. * @param type the component's type * * @return <code>true if the component has a lifecycle */ boolean hasLifecycle(Class type); } Other PicoContainer examples (source code examples)Here is a short list of links related to this PicoContainer LifecycleStrategy.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.