01: /*
02: * $Id: Startable.java 10808 2008-02-14 20:36:57Z acooke $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.lifecycle;
12:
13: import org.mule.api.MuleException;
14:
15: /**
16: * <code>Startable</code> provides an object with a {@link #start()} method
17: * which gets called when the Mule instance gets started. This is mostly used by
18: * infrastructure components, but can also be implemented by service objects
19: *
20: * @see LifecycleAdapter
21: */
22: public interface Startable {
23:
24: static final String PHASE_NAME = "start";
25:
26: LifecycleTransitionResult start() throws MuleException;
27:
28: }
|