cn.sylinx.hbatis.ext.xmapper.plugin.XmapperPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbatis-xmapper Show documentation
Show all versions of hbatis-xmapper Show documentation
hbatis-xmapper is a simple orm framework, extends hbatis-core
The newest version!
package cn.sylinx.hbatis.ext.xmapper.plugin;
import cn.sylinx.hbatis.ext.xmapper.xml.XmlSqlMapper;
import cn.sylinx.hbatis.plugin.IPlugin;
public class XmapperPlugin implements IPlugin {
private String resourcePath;
public XmapperPlugin() {
}
public XmapperPlugin(String resourcePath) {
this.resourcePath = resourcePath;
}
public void setResourcePath(String resourcePath) {
this.resourcePath = resourcePath;
}
@Override
public boolean start(Object... objects) {
return XmlSqlMapper.get().load(resourcePath);
}
@Override
public boolean stop() {
XmlSqlMapper.get().clear();
return true;
}
}