View Javadoc

1   /*
2    * $Id: ServiceType.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  package org.mule.api.registry;
11  
12  /**
13   * TODO
14   */
15  public enum ServiceType
16  {
17      TRANSPORT("transport", "org/mule/transport"),
18      MODEL("model", "org/mule/model"),
19      EXCEPTION("exception", "org/mule/config");
20  
21      private String name;
22      private String path;
23  
24      ServiceType(String name, String path)
25      {
26          this.name = name;
27          this.path = path;
28      }
29  
30      @Override
31      public String toString()
32      {
33          return name + ": " + path;
34      }
35  
36      public String getPath()
37      {
38          return path;
39      }
40  
41      public String getName()
42      {
43          return name;
44      }
45  }
46  
47