OSDN Git Service

e9cae1bd68484e861166d25af06afc9a2f49c137
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / config / ConfigGeneralProfile.java
1 package yukihane.inqubus.config;
2
3 import saccubus.worker.profile.GeneralProfile;
4
5 /**
6  * コンフィグに設定された値を基にしたGeneralProfilee実装.
7  * @author user
8  */
9 public class ConfigGeneralProfile implements GeneralProfile {
10
11     private final String replaceFrom;
12     private final String replaceTo;
13
14     public ConfigGeneralProfile() {
15         final Config p = Config.INSTANCE;
16         this.replaceFrom = p.getReplaceFrom();
17         this.replaceTo = p.getReplaceTo();
18     }
19
20     @Override
21     public String getReplaceFrom() {
22         return replaceFrom;
23     }
24
25     @Override
26     public String getReplaceTo() {
27         return replaceTo;
28     }
29 }