Used to implemented for customized
IMessageType
Need to use a combination of
BundleMessageContext
Useage:
public enum DefaultBundleMessageType implements IBundleMessageType {
LOG, EXCEPTION, UI;
public String value() {
return toString() + ":" + BASE_PACK_DIR + toString();
}
public String getPackName() {
String packName = null;
String val = value();
if (val != null) {
int split = val.indexOf(":");
if (-1 != split) {
packName = val.substring(split + 1);
}
}
return packName;
}
public String getPackType() {
String packType = null;
String val = value();
if (val != null) {
int split = val.indexOf(":");
if (-1 != split) {
packType = val.substring(0, split);
}
}
return packType;
}
public static final String BASE_PACK_DIR = "resource/i18n/";
}