public class SimpleNoticeTemplateAdapter extends Object implements NoticeTemplateAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ADAPTER_KEY
适配器key.
|
static String |
DEFAULT_PREFIX
默认前缀.
|
static String |
DEFAULT_SUFFIX
默认后缀.
|
| 构造器和说明 |
|---|
SimpleNoticeTemplateAdapter()
使用默认前缀和后缀构造简易通知模板.
|
SimpleNoticeTemplateAdapter(String prefix,
String suffix)
使用指定前缀和后缀构造简易通知模板.
|
public String adapterKey()
NoticeTemplateAdapteradapterKey 在接口中 NoticeTemplateAdapterpublic boolean support(String contentTemplate)
NoticeTemplateAdaptersupport 在接口中 NoticeTemplateAdaptercontentTemplate - 内容模板public String format(String contentTemplate, Map<String,String> params)
NoticeTemplateAdapterformat 在接口中 NoticeTemplateAdaptercontentTemplate - 内容模板params - 参数表Copyright © 2022 guerlab. All rights reserved.