CustomLoader

  • 如果還有其它資料來源的話,可以自行定義 Loader。
  • 需實作 CodeTableSource 。
public interface CodeTableSource {
    List<String> loadCategoryNames(); // 回傳載入 Category 清單
    UdeProperties load(Locale locale, String category); // 讀取指定代碼表內容
}
  • spring ioc context 中,必須存在指定名稱的 BEAN 。
  code.loader.bean=codeTableLoader

results matching ""

    No results matching ""