View Javadoc

1   /*
2    * $Id: DirectModel.java 7963 2007-08-21 08:53:15Z dirk.olmes $
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.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  public class DirectModel extends AbstractModel
19  {
20  
21      protected UMOComponent createComponent(UMODescriptor descriptor)
22      {
23          return new DirectComponent((MuleDescriptor) descriptor, this);
24      }
25  
26      /**
27       * Returns the model type name. This is a friendly identifier that is used to
28       * look up the SPI class for the model
29       * 
30       * @return the model type
31       */
32      public String getType()
33      {
34          return "direct";
35      }
36  }