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.tck.testmodels.mule;
8   
9   import org.mule.api.MuleContext;
10  import org.mule.api.MuleException;
11  import org.mule.api.component.JavaComponent;
12  import org.mule.api.component.LifecycleAdapter;
13  import org.mule.api.component.LifecycleAdapterFactory;
14  import org.mule.api.construct.FlowConstruct;
15  import org.mule.api.model.EntryPointResolverSet;
16  
17  public class TestComponentLifecycleAdapterFactory implements LifecycleAdapterFactory
18  {
19      public TestComponentLifecycleAdapterFactory()
20      {
21          super();
22      }
23  
24      public LifecycleAdapter create(Object pojoService,
25                                     JavaComponent service,
26                                     FlowConstruct flowConstruct,
27                                     EntryPointResolverSet resolver,
28                                     MuleContext muleContext) throws MuleException
29      {
30          return new TestComponentLifecycleAdapter(pojoService, service, flowConstruct, resolver, muleContext);
31      }
32  
33  }