xworker.system.service.ServiceGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xworker_app Show documentation
Show all versions of xworker_app Show documentation
XWorker app model liberary.
The newest version!
package xworker.system.service;
import java.util.HashMap;
import java.util.Map;
import org.xmeta.Thing;
public class ServiceGroup {
/** 服务事物 */
private Thing thing;
/** 用于保存服务数据的缓存 */
private Map datas = new HashMap();
public ServiceGroup(Thing thing){
update(thing);
}
public void setData(String key, Object value){
datas.put(key, value);
}
public Object getData(String key){
return datas.get(key);
}
public Object removeData(String key){
return datas.remove(key);
}
public void update(Thing thing){
this.thing = thing;
}
public Thing getThing(){
return thing;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy