@Bean @ConditionalOnMissingBean(TeamInfo.class) public TeamInfo teamInfo(final TeamInfoProperties teamInfoProperties) { return TeamInfo.teamInfo(teamInfoProperties); } }
public static TeamInfo teamInfo(final String name, final String technicalContact, final String businessContact) { return new TeamInfo(name, technicalContact, businessContact); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ApplicationStatus that = (ApplicationStatus) o; if (application != null ? !application.equals(that.application) : that.application != null) return false; if (system != null ? !system.equals(that.system) : that.system != null) return false; if (vcs != null ? !vcs.equals(that.vcs) : that.vcs != null) return false; if (team != null ? !team.equals(that.team) : that.team != null) return false; if (status != that.status) return false; if (statusDetails != null ? !statusDetails.equals(that.statusDetails) : that.statusDetails != null) return false; if (serviceSpecs != null ? !serviceSpecs.equals(that.serviceSpecs) : that.serviceSpecs != null) return false; return true; }
@Override public int hashCode() { int result = application != null ? application.hashCode() : 0; result = 31 * result + (system != null ? system.hashCode() : 0); result = 31 * result + (vcs != null ? vcs.hashCode() : 0); result = 31 * result + (team != null ? team.hashCode() : 0); result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (statusDetails != null ? statusDetails.hashCode() : 0); result = 31 * result + (serviceSpecs != null ? serviceSpecs.hashCode() : 0); return result; }
@Bean @ConditionalOnMissingBean(TeamInfo.class) public TeamInfo teamInfo() { return TeamInfo.teamInfo(name, technicalContact, businessContact); } }
public static TeamInfo teamInfo(final TeamInfoProperties teamInfoProperties) { return new TeamInfo(teamInfoProperties.getName(), teamInfoProperties.getTechnicalContact(), teamInfoProperties.getBusinessContact()); }
@Bean TeamInfo teamInfo() { return TeamInfo.teamInfo(teamInfoProperties("Test Team", "technical@example.org", "business@example.org")); }