forked from fanruan/demo-simple-config
richie
6 years ago
5 changed files with 99 additions and 4 deletions
@ -0,0 +1,24 @@ |
|||||||
|
package com.fr.conf.demo.simple; |
||||||
|
|
||||||
|
import com.fr.conf.demo.simple.account.PluginSimpleConfig; |
||||||
|
import com.fr.decision.fun.impl.AbstractEmbedRequestFilterProvider; |
||||||
|
|
||||||
|
import javax.servlet.FilterChain; |
||||||
|
import javax.servlet.FilterConfig; |
||||||
|
import javax.servlet.ServletException; |
||||||
|
import javax.servlet.http.HttpServletRequest; |
||||||
|
import javax.servlet.http.HttpServletResponse; |
||||||
|
import java.io.IOException; |
||||||
|
|
||||||
|
public class PluginInitializeFilterBridge extends AbstractEmbedRequestFilterProvider { |
||||||
|
|
||||||
|
@Override |
||||||
|
public void init(FilterConfig filterConfig) { |
||||||
|
PluginSimpleConfig.getInstance(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void doFilter(HttpServletRequest req, HttpServletResponse res, FilterChain filterChain) throws IOException, ServletException { |
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
package com.fr.conf.demo.simple; |
||||||
|
|
||||||
|
import com.fr.stable.fun.impl.AbstractLocaleFinder; |
||||||
|
|
||||||
|
public class PluginLocaleFinderBridge extends AbstractLocaleFinder { |
||||||
|
@Override |
||||||
|
public String find() { |
||||||
|
return "com/fr/conf/demo/simple/locale/conf"; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
Plugin-Config_Demo=Plugin Demo |
||||||
|
Plugin-Config_Property_Text=Account |
||||||
|
Plugin-Config_Property_Count=Count |
||||||
|
Plugin-Config_Property_Text_Description=This is a text property. |
||||||
|
Plugin-Config_Property_Count_Description=This is a int property. |
||||||
|
Plugin-Config_Group=Plugin |
||||||
|
Plugin-Config_Property_Price=Price |
||||||
|
Plugin-Config_Property_Price_Description=This is a price property. |
||||||
|
Plugin-Config_Property_Time=Time |
||||||
|
Plugin-Config_Property_Time_Description=This is a time proeprty. |
||||||
|
Plugin-Config_Property_Student=Student |
||||||
|
Plugin-Config_Property_Student_Description=This is a bool property. |
@ -0,0 +1,12 @@ |
|||||||
|
Plugin-Config_Demo=\u793A\u4F8B\u63D2\u4EF6 |
||||||
|
Plugin-Config_Property_Text=\u8D26\u53F7 |
||||||
|
Plugin-Config_Property_Count=\u6570\u91CF |
||||||
|
Plugin-Config_Property_Text_Description=\u8FD9\u662F\u4E00\u4E2A\u6587\u672C\u7C7B\u578B\u7684\u914D\u7F6E\u5C5E\u6027\u3002 |
||||||
|
Plugin-Config_Property_Count_Description=\u8FD9\u662F\u4E00\u4E2A\u6574\u6570\u7C7B\u578B\u7684\u914D\u7F6E\u5C5E\u6027\u3002 |
||||||
|
Plugin-Config_Group=\u63D2\u4EF6\u914D\u7F6E |
||||||
|
Plugin-Config_Property_Price=\u4EF7\u683C |
||||||
|
Plugin-Config_Property_Price_Description=\u8FD9\u662F\u7528\u6765\u8BBE\u7F6E\u4EF7\u683C\u7684\u3002 |
||||||
|
Plugin-Config_Property_Time=\u65F6\u95F4 |
||||||
|
Plugin-Config_Property_Time_Description=\u8FD9\u662F\u7528\u6765\u8BBE\u7F6E\u6709\u6548\u65F6\u95F4\u7684 |
||||||
|
Plugin-Config_Property_Student=\u5B66\u751F |
||||||
|
Plugin-Config_Property_Student_Description=\u8FD9\u662F\u7528\u6765\u8BBE\u7F6E\u662F\u5426\u4E3A\u5B66\u751F\u7684\u3002 |
Loading…
Reference in new issue