use of com.axway.ats.core.atsconfig.model.ApplicationController in project ats-framework by Axway.
the class AtsInfrastructureManager method getController.
private AbstractApplicationController getController(String alias) throws AtsManagerException {
AgentInfo agentInfo = projectConfiguration.getAgents().get(alias);
if (agentInfo != null) {
return new AgentController(agentInfo, projectConfiguration.getSourceProject());
}
ApplicationInfo applicationInfo = projectConfiguration.getApplications().get(alias);
if (applicationInfo != null) {
return new ApplicationController(applicationInfo);
}
throw new AtsManagerException("Can't find application with alias '" + alias + "' in the configuration");
}
Aggregations