aboutsummaryrefslogtreecommitdiffstats
path: root/operation-utils/src/main/resources/messageEnum.java_template
diff options
context:
space:
mode:
Diffstat (limited to 'operation-utils/src/main/resources/messageEnum.java_template')
-rw-r--r--operation-utils/src/main/resources/messageEnum.java_template18
1 files changed, 18 insertions, 0 deletions
diff --git a/operation-utils/src/main/resources/messageEnum.java_template b/operation-utils/src/main/resources/messageEnum.java_template
new file mode 100644
index 0000000..e0b3c12
--- /dev/null
+++ b/operation-utils/src/main/resources/messageEnum.java_template
@@ -0,0 +1,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");
+ }
+}