KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > impl > model > direct > DirectModel


1 /*
2  * $Id: DirectModel.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.impl.model.direct;
12
13 import org.mule.impl.MuleDescriptor;
14 import org.mule.impl.model.AbstractModel;
15 import org.mule.umo.UMOComponent;
16 import org.mule.umo.UMODescriptor;
17
18 /**
19  * todo document
20  *
21  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
22  * @version $Revision: 3798 $
23  */

24 public class DirectModel extends AbstractModel
25 {
26
27     protected UMOComponent createComponent(UMODescriptor descriptor)
28     {
29         return new DirectComponent((MuleDescriptor)descriptor, this);
30     }
31
32     /**
33      * Returns the model type name. This is a friendly identifier that is used to
34      * look up the SPI class for the model
35      *
36      * @return the model type
37      */

38     public String JavaDoc getType()
39     {
40         return "direct";
41     }
42 }
43
Popular Tags