Code: Select all
public class MyExtension extends SFSExtension {
private ConfigMaster configMaster;
@Override
public void init() {
configMaster = new ConfigMaster();
}
@Override
public Object handleInternalMessage(String cmdName, Object params) {
//Here
getConfigMaster()
//somecode
}
public ConfigMaster getConfigMaster() {
return configMaster;
}
The problem is that when I reload MyExtension.jar,the configMaster invoke in the handleInternalMessage is still the old one.(I compared to the hashcode between the one before reload and the one after reload)
So,I want to know how to reload the jetty server to make it get the obj which after reload.