Search in sources :

Example 1 with ApplicationController

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");
}
Also used : ApplicationController(com.axway.ats.core.atsconfig.model.ApplicationController) AbstractApplicationController(com.axway.ats.core.atsconfig.model.AbstractApplicationController) AgentController(com.axway.ats.core.atsconfig.model.AgentController) ApplicationInfo(com.axway.ats.core.atsconfig.model.ApplicationInfo) AtsManagerException(com.axway.ats.core.atsconfig.exceptions.AtsManagerException) AgentInfo(com.axway.ats.core.atsconfig.model.AgentInfo)

Aggregations

AtsManagerException (com.axway.ats.core.atsconfig.exceptions.AtsManagerException)1 AbstractApplicationController (com.axway.ats.core.atsconfig.model.AbstractApplicationController)1 AgentController (com.axway.ats.core.atsconfig.model.AgentController)1 AgentInfo (com.axway.ats.core.atsconfig.model.AgentInfo)1 ApplicationController (com.axway.ats.core.atsconfig.model.ApplicationController)1 ApplicationInfo (com.axway.ats.core.atsconfig.model.ApplicationInfo)1