Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
DefaultLifecycleAdapterFactory |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: DefaultLifecycleAdapterFactory.java 12269 2008-07-10 04:19:03Z 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.component; | |
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 | /** | |
20 | * <code>DefaultLifecycleAdapterFactory</code> creates a DefaultLifeCycleAdapter. Users can | |
21 | * implement their own LifeCycleAdapter factories to control lifecycle events on their services such | |
22 | * as introduce other lifecycle events that are controlled by external changes. | |
23 | * | |
24 | * @see org.mule.api.component.LifecycleAdapter | |
25 | * @see org.mule.api.component.LifecycleAdapterFactory | |
26 | * @see org.mule.component.DefaultLifecycleAdapter | |
27 | * @see org.mule.component.DefaultLifecycleAdapterFactory | |
28 | */ | |
29 | 1552 | public class DefaultLifecycleAdapterFactory implements LifecycleAdapterFactory |
30 | { | |
31 | ||
32 | /* | |
33 | * (non-Javadoc) | |
34 | * | |
35 | * @see org.mule.api.lifecycle.LifecycleAdapterFactory#create(java.lang.Object, | |
36 | * org.mule.api.UMODescriptor) | |
37 | */ | |
38 | public LifecycleAdapter create(Object pojoService, JavaComponent component, EntryPointResolverSet resolver) | |
39 | throws MuleException | |
40 | { | |
41 | 76 | return new DefaultLifecycleAdapter(pojoService, component, resolver); |
42 | } | |
43 | ||
44 | } |