代码拉取完成,页面将自动刷新
/**
* Project: yui3-common-hub
* Class AbstractHubDataHandler
* Version 1.0
* File Created at 2018年8月14日
* $Id$
*
* Copyright 2010-2015 Yui.com Corporation Limited.
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Yui Personal. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Yui.com.
*/
package yui.comn.hub.data.handler;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.apache.commons.lang3.StringUtils;
import yui.comn.hub.model.HubXmlHandlerConfig;
/**
* 抽象数据中转处理
* @author yuyi (1060771195@qq.com)
*/
public abstract class AbstractHubDataHandler implements IHubDataHandler{
protected abstract void doHandle(HubXmlHandlerConfig dataConfig, Map<String, Object> dataMap);
@PostConstruct
public void init() {
if (StringUtils.isNotBlank(getRegisterName())) {
HubDataHandlerRegister.registerHandler(getRegisterName(), this);
}
}
@Override
public Object handle(HubXmlHandlerConfig dataConfig, Map<String, Object> dataMap) {
doHandle(dataConfig, dataMap);
return null;
}
//也可以在类中直接注册
protected String getRegisterName() {
return null;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。