aboutsummaryrefslogtreecommitdiffstats
path: root/operation-utils/src/main/resources/messageEnum.java_template
blob: e0b3c128d5ce32f54657a5c43434720109a6955d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package $packageName;

import com.att.eelf.i18n.EELFResourceManager;
import org.openecomp.logger.EcompMessageEnum;

public enum ${name}MessageEnum implements EcompMessageEnum {
<% 
def last 
messages.each { n, v -> last = n }
messages.each { n, v -> %>
  $n${n==last ? ";" : ","}\
<% } %>

	static {
		EELFResourceManager.loadMessageBundle("${packageName}.$name");
	}
}