Interface TeamDeployer
public interface TeamDeployer
Deployer to configure
OfficeFloorTeam instances.-
Method Summary
Modifier and TypeMethodDescriptionaddTeam(String teamName, String teamLocation, PropertyList properties) Adds a singleOfficeFloorTeam.addTeams(String teamsDirectory, PropertyList properties) Adds allOfficeFloorTeaminstances from a directory.
-
Method Details
-
addTeam
OfficeFloorTeam addTeam(String teamName, String teamLocation, PropertyList properties) throws Exception Adds a singleOfficeFloorTeam.- Parameters:
teamName- Name of the team.teamLocation- Classpath resource path to the configuration.properties-PropertyListfor interpolation.- Returns:
- Configured
OfficeFloorTeam. - Throws:
Exception- If fails to load.
-
addTeams
Map<String,OfficeFloorTeam> addTeams(String teamsDirectory, PropertyList properties) throws Exception Adds allOfficeFloorTeaminstances from a directory.- Parameters:
teamsDirectory- Classpath directory path to scan for configuration files.properties-PropertyListfor interpolation.- Returns:
- Map of team name to
OfficeFloorTeam. - Throws:
Exception- If fails to load.
-