package org.openscore.lang.compiler.configuration;
/*******************************************************************************
* (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
*******************************************************************************/


/*
 * Created by orius123 on 05/11/14.
 */
import org.openscore.lang.compiler.modeller.SlangModeller;
import org.openscore.lang.compiler.modeller.SlangModellerImpl;
import org.openscore.lang.compiler.scorecompiler.ScoreCompiler;
import org.openscore.lang.compiler.scorecompiler.ScoreCompilerImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.introspector.BeanAccess;

@Configuration
@ComponentScan("org.openscore.lang.compiler")
public class SlangCompilerSpringConfig {

    @Bean
    public Yaml yaml(){
        Yaml yaml = new Yaml();
        yaml.setBeanAccess(BeanAccess.FIELD);
        return yaml;
    }

    @Bean
    public ScoreCompiler scoreCompiler(){
        return new ScoreCompilerImpl();
    }

}

@@ -570,262 +570,9 @@
  */%0A
-import org.openscore.lang.compiler.modeller.SlangModeller;%0Aimport org.openscore.lang.compiler.modeller.SlangModellerImpl;%0Aimport org.openscore.lang.compiler.scorecompiler.ScoreCompiler;%0Aimport org.openscore.lang.compiler.scorecompiler.ScoreCompilerImpl;
 %0A
+
 impo
@@ -960,16 +960,17 @@
 l yaml()
+ 
 %7B%0A      
@@ -1066,112 +1066,12 @@
 ml;%0A
+
     %7D%0A
-%0A    @Bean%0A    public ScoreCompiler scoreCompiler()%7B%0A        return new ScoreCompilerImpl();%0A    %7D%0A%0A
 %7D%0A

Remove unneeded bean definition