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.api.component; 8 9 import org.mule.api.MuleEvent; 10 import org.mule.api.MuleException; 11 import org.mule.api.lifecycle.Lifecycle; 12 import org.mule.api.service.Service; 13 14 /** 15 * <code>LifecycleAdapter</code> is a wrapper around a pojo service that adds 16 * Lifecycle methods to the pojo. It also associates the pojo service with its 17 * {@link Service} object. 18 * 19 * @see Service 20 */ 21 public interface LifecycleAdapter extends Lifecycle 22 { 23 boolean isStarted(); 24 25 boolean isDisposed(); 26 27 Object invoke(MuleEvent message) throws MuleException; 28 29 }