View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.launcher.application;
8   
9   import org.mule.api.MuleContext;
10  import org.mule.module.launcher.DeploymentStartException;
11  import org.mule.module.launcher.InstallException;
12  import org.mule.module.launcher.descriptor.ApplicationDescriptor;
13  
14  public interface Application
15  {
16      void install() throws InstallException;
17  
18      void init();
19  
20      void start() throws DeploymentStartException;
21  
22      void stop();
23  
24      void dispose();
25  
26      void redeploy();
27  
28      MuleContext getMuleContext();
29  
30      /**
31       * @return a classloader associated with this deployment 
32       */
33      ClassLoader getDeploymentClassLoader();
34  
35      String getAppName();
36  
37      ApplicationDescriptor getDescriptor();
38  }