Commit df9618e8 authored by Liang Ding's avatar Liang Ding

插件加载微调

parent 442c7ac0
...@@ -44,25 +44,11 @@ public class ListHandler extends AbstractEventListener<JSONObject> { ...@@ -44,25 +44,11 @@ public class ListHandler extends AbstractEventListener<JSONObject> {
*/ */
private static final Logger LOGGER = Logger.getLogger(ListHandler.class.getName()); private static final Logger LOGGER = Logger.getLogger(ListHandler.class.getName());
/**
* Instance.
*/
private static final ListHandler INSTANCE = new ListHandler();
@Override @Override
public String getEventType() { public String getEventType() {
return EventTypes.BEFORE_RENDER_ARTICLE; return EventTypes.BEFORE_RENDER_ARTICLE;
} }
/**
* Gets the instance.
*
* @return instance
*/
public static ListHandler getInstance() {
return INSTANCE;
}
@Override @Override
public void action(final Event<JSONObject> event) throws EventException { public void action(final Event<JSONObject> event) throws EventException {
final JSONObject data = event.getData(); final JSONObject data = event.getData();
......
...@@ -182,7 +182,7 @@ public class PluginMgmtService { ...@@ -182,7 +182,7 @@ public class PluginMgmtService {
transaction.commit(); transaction.commit();
pluginManager.update(plugin); plugin.changeStatus();
ret.put(Keys.STATUS_CODE, true); ret.put(Keys.STATUS_CODE, true);
ret.put(Keys.MSG, langs.get("setSuccLabel")); ret.put(Keys.MSG, langs.get("setSuccLabel"));
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<properties> <properties>
<servlet.version>2.5</servlet.version> <servlet.version>2.5</servlet.version>
<slf4j.version>1.7.5</slf4j.version> <slf4j.version>1.7.5</slf4j.version>
<org.b3log.latke.version>1.0.12</org.b3log.latke.version> <org.b3log.latke.version>1.0.13</org.b3log.latke.version>
<maven-gae-plugin.version>0.9.0</maven-gae-plugin.version> <maven-gae-plugin.version>0.9.0</maven-gae-plugin.version>
<gae.version>1.8.1.1</gae.version> <gae.version>1.8.1.1</gae.version>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment