01: /*
02: * $Id: DefaultLifecycleAdapterFactory.java 11379 2008-03-17 02:46:56Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: public class DefaultLifecycleAdapterFactory implements
30: LifecycleAdapterFactory {
31: public DefaultLifecycleAdapterFactory() {
32: super ();
33: }
34:
35: /*
36: * (non-Javadoc)
37: *
38: * @see org.mule.api.lifecycle.LifecycleAdapterFactory#create(java.lang.Object,
39: * org.mule.api.UMODescriptor)
40: */
41: public LifecycleAdapter create(Object pojoService,
42: JavaComponent component, EntryPointResolverSet resolver)
43: throws MuleException {
44: return new DefaultLifecycleAdapter(pojoService, component,
45: resolver);
46: }
47:
48: }
|