View Javadoc

1   /*
2    * $Id: LifecycleAdapter.java 11379 2008-03-17 02:46:56Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.api.component;
12  
13  import org.mule.api.interceptor.Interceptor;
14  import org.mule.api.lifecycle.Lifecycle;
15  import org.mule.api.service.Service;
16  
17  /**
18   * <code>LifecycleAdapter</code> is a wrapper around a pojo service that adds Lifecycle methods to the pojo. It also
19   * associates the pojo service with its {@link Service} object.
20   *
21   * @see Service
22   */
23  public interface LifecycleAdapter extends Lifecycle, Interceptor
24  {
25      boolean isStarted();
26  
27      boolean isDisposed();
28  
29  }