Source code: org/mule/Application.java
1 /*
2 * $Header: /cvsroot/mule/mule/src/java/org/mule/Application.java,v 1.8 2003/10/20 21:19:17 rossmason Exp $
3 * $Revision: 1.8 $
4 * $Date: 2003/10/20 21:19:17 $
5 * ------------------------------------------------------------------------------------------------------
6 *
7 * Copyright (c) Cubis Limited. All rights reserved.
8 * http://www.cubis.co.uk
9 *
10 * The software in this package is published under the terms of the BSD
11 * style license a copy of which has been included with this distribution in
12 * the LICENSE.txt file.
13 *
14 */
15 package org.mule;
16
17 import java.util.HashMap;
18
19 /**
20 * <p><code>Application</code> is a strategy class which can be implemented to do some
21 * application specific work when the <code>MuleManager</code> is initialising.
22 * The <code>initialise</code> method is called after all global configuration has been
23 * loaded but before the <code>mule-descriptor</code> configurations are loaded.
24 *
25 * @author <a href="mailto:ross.mason@cubis.co.uk">Ross Mason</a>
26 * @version $Revision: 1.8 $
27 *
28 */
29 public interface Application
30 {
31 /**
32 * Does any application specific initialisation
33 * @param props the properties specified in the the <application> block of the
34 * mule-configuration.xml file
35 * @throws Exception User may throw an exception. This will cause Mule to shutdown
36 * or atleast not be a valid server in an embedded environment
37 */
38 public void initialise(HashMap props) throws Exception;
39 }