@Inject
private Instance<ProtocolRegistry> protocolRegistry;
public void generateDeployment(@Observes GenerateDeployment event)
{
DeploymentScenarioGenerator generator = serviceLoader.get().onlyOne(
DeploymentScenarioGenerator.class, AnnotationDeploymentScenarioGenerator.class);
DeploymentScenario scenario = new DeploymentScenario();
for(DeploymentDescription deployment : generator.generate(event.getTestClass()))
{
scenario.addDeployment(deployment);
}
validate(scenario);