Skip to content

Commit

Permalink
renamed Configuration to BotConfiguration to avoid colliding with Spr…
Browse files Browse the repository at this point in the history
…ing's Configuration type
  • Loading branch information
Zomis committed Jan 21, 2015
1 parent 8e038c0 commit d293f1b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import com.gistlabs.mechanize.document.html.form.SubmitButton;
import com.gistlabs.mechanize.document.json.JsonDocument;
import com.gistlabs.mechanize.impl.MechanizeAgent;
import com.skiwi.githubhooksechatservice.mvc.configuration.Configuration;
import com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration;
import com.skiwi.githubhooksechatservice.mvc.controllers.WebhookParameters;

/**
Expand All @@ -53,7 +53,7 @@ public class StackExchangeChatBot implements ChatBot, DisposableBean {
private final MechanizeAgent agent;

@Autowired
private Configuration configuration;
private BotConfiguration configuration;

private String chatFKey;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public StartupBean startup() {
}

@Bean
public com.skiwi.githubhooksechatservice.mvc.configuration.Configuration config() {
com.skiwi.githubhooksechatservice.mvc.configuration.Configuration config = new com.skiwi.githubhooksechatservice.mvc.configuration.Configuration();
public com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration config() {
com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration config = new com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration();
config.setBotEmail(env.getRequiredProperty("env.botEmail"));
config.setBotPassword(env.getRequiredProperty("env.botPassword"));
config.setChatMaxBurst(Integer.parseInt(env.getRequiredProperty("env.chatMaxBurst")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.skiwi.githubhooksechatservice.chatbot.ChatBot;
import com.skiwi.githubhooksechatservice.mvc.beans.RepositoryStats;
import com.skiwi.githubhooksechatservice.mvc.beans.Statistics;
import com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration;
import com.skiwi.githubhooksechatservice.mvc.controllers.WebhookParameters;

@Configuration
Expand All @@ -24,7 +25,7 @@ public class ScheduledTasks {
private ChatBot chatBot;

@Autowired
private com.skiwi.githubhooksechatservice.mvc.configuration.Configuration config;
private BotConfiguration config;

@Autowired
private Statistics statistics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Frank van Heeswijk
*/
public class Configuration {
public class BotConfiguration {
private String rootUrl;
private String chatUrl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.skiwi.githubhooksechatservice.chatbot.ChatBot;
import com.skiwi.githubhooksechatservice.events.travis.BuildEvent;
import com.skiwi.githubhooksechatservice.mvc.beans.Statistics;
import com.skiwi.githubhooksechatservice.mvc.configuration.Configuration;
import com.skiwi.githubhooksechatservice.mvc.configuration.BotConfiguration;

/**
*
Expand All @@ -44,7 +44,7 @@ public class TravisHookController {
private ChatBot chatBot;

@Autowired
private Configuration configuration;
private BotConfiguration configuration;

@Autowired
private Statistics stats;
Expand Down

0 comments on commit d293f1b

Please sign in to comment.