1   /*
2    * $Id: TestDefaultLifecycleAdapterFactory.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.tck.testmodels.mule;
12  
13  import org.mule.api.MuleException;
14  import org.mule.api.component.JavaComponent;
15  import org.mule.api.component.LifecycleAdapter;
16  import org.mule.api.component.LifecycleAdapterFactory;
17  import org.mule.api.model.EntryPointResolverSet;
18  
19  public class TestDefaultLifecycleAdapterFactory implements LifecycleAdapterFactory
20  {
21      public TestDefaultLifecycleAdapterFactory()
22      {
23          super();
24      }
25  
26      /*
27       * (non-Javadoc)
28       * 
29       * @see org.mule.api.lifecycle.LifecycleAdapterFactory#create(java.lang.Object,
30       *      org.mule.api.UMODescriptor, org.mule.api.model.EntryPointResolver)
31       */
32      public LifecycleAdapter create(Object pojoService, JavaComponent service, EntryPointResolverSet resolver)
33          throws MuleException
34      {
35          return new TestDefaultLifecycleAdapter(pojoService, service, resolver);
36      }
37  
38  }