Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2d00d5b9b2c3bec746ce356a0fb82c00919c4add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Created on Jul 27, 2009
 *
 * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
 */
package org.eclipse.osee.framework.messaging;

/**
 * @author b1528444
 */
public enum Component {

   VM("osee-vm"),
   JMS("osee-jms");

   private String name;
   private String nameWithColon;

   private Component(String name) {
      this.name = name;
      this.nameWithColon = name + ":";
   }

   @Override
   public String toString() {
      return name + ":";
   }

   public String getComponentName() {
      return name;
   }

   public String getComponentNameForRoutes() {
      return nameWithColon;
   }

   public boolean isVMComponent() {
      return this.equals(Component.VM);
   }
}

Back to the top