Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ServiceType |
|
| 0.0;0 |
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 | 0 | public enum ServiceType |
16 | { | |
17 | 0 | TRANSPORT("transport", "org/mule/transport"), |
18 | 0 | MODEL("model", "org/mule/model"), |
19 | 0 | EXCEPTION("exception", "org/mule/config"); |
20 | ||
21 | private String name; | |
22 | private String path; | |
23 | ||
24 | ServiceType(String name, String path) | |
25 | 0 | { |
26 | 0 | this.name = name; |
27 | 0 | this.path = path; |
28 | 0 | } |
29 | ||
30 | @Override | |
31 | public String toString() | |
32 | { | |
33 | 0 | return name + ": " + path; |
34 | } | |
35 | ||
36 | public String getPath() | |
37 | { | |
38 | 0 | return path; |
39 | } | |
40 | ||
41 | public String getName() | |
42 | { | |
43 | 0 | return name; |
44 | } | |
45 | } | |
46 | ||
47 |