View Javadoc

1   /*
2    * $Id: LifecycleStateEnabled.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  package org.mule.api.lifecycle;
11  
12  /**
13   * Objects that have an associated lifecycle manager such as {@link Service} or {@link org.mule.api.transport.Connector} should
14   * implement this interface so that the registry lifecycle manager can introspect the lifecycle state of an object.
15   * This allows objects to have a different lifecycle state to the registry.  Typically objects that ahve their own lifecycle manager
16   * can be controlled externally through JMX which means there is no guarantee that the state of the object is in the same
17   * lifecycle state of the registry, hence the need to introspect the lifecycle state of an object.
18   *
19   * @since 3.0
20   */
21  public interface LifecycleStateEnabled
22  {
23      LifecycleState getLifecycleState();
24  }