Elijah 6 years ago
parent
commit
232e9b1afc
  1. 4
      plugin.xml
  2. 6
      src/main/java/com/fr/plugin/demo/before/init/event/CustomBeforeInitEventProvider.java

4
plugin.xml

@ -12,7 +12,7 @@
]]></change-notes>
<extra-decision>
<BeforeInitEventProvider class="com.fr.plugin.demo.before.init.event.CustomBeforeInitEventProvider"/>
<DecisionInitEventProvider class="com.fr.plugin.demo.before.init.event.CustomDecisionInitEventProvider"/>
</extra-decision>
<function-recorder class="com.fr.plugin.demo.before.init.event.CustomBeforeInitEventProvider"/>
<function-recorder class="com.fr.plugin.demo.before.init.event.CustomDecisionInitEventProvider"/>
</plugin>

6
src/main/java/com/fr/plugin/demo/before/init/event/CustomBeforeInitEventProvider.java

@ -1,6 +1,6 @@
package com.fr.plugin.demo.before.init.event;
import com.fr.decision.fun.impl.AbstractBeforeInitEventProvider;
import com.fr.decision.fun.impl.AbstractDecisionInitEventProvider;
import com.fr.decision.webservice.utils.WebServiceUtils;
import com.fr.log.FineLoggerFactory;
import com.fr.plugin.transform.FunctionRecorder;
@ -13,9 +13,9 @@ import javax.servlet.http.HttpServletRequest;
* @Desciption:
*/
@FunctionRecorder
public class CustomBeforeInitEventProvider extends AbstractBeforeInitEventProvider {
public class CustomBeforeInitEventProvider extends AbstractDecisionInitEventProvider {
@Override
public void action(HttpServletRequest httpServletRequest) {
public void before(HttpServletRequest httpServletRequest) {
FineLoggerFactory.getLogger().error(WebServiceUtils.getIpInfoFromRequest(httpServletRequest) + " init decision");
}
}
Loading…
Cancel
Save