// Path: nicobar-core/src/main/java/com/netflix/nicobar/core/compile/ScriptArchiveCompiler.java
// public interface ScriptArchiveCompiler {
//     /**
//      * Whether or not this compiler should be used to compile the archive
//      */
//     public boolean shouldCompile(ScriptArchive archive);
// 
//     /**
//      * Compile the archive into a ScriptModule
//      * @param archive archive to generate class files for
//      * @param moduleClassLoader class loader which can be used to find all classes and resources for modules.
//      *  The resultant classes of the compile operation should be injected into the classloader
//      *  for which the given archive has a declared dependency on
//      * @param targetDir a directory in which to store compiled classes, if any.
//      * @return The set of classes that were compiled
//      * @throws ScriptCompilationException if there was a compilation issue in the archive.
//      * @throws IOException if there was a problem reading/writing the archive
//      */
//     public Set<Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, Path targetDir) throws ScriptCompilationException, IOException;
// }
// 
// Path: nicobar-core/src/main/java/com/netflix/nicobar/core/internal/compile/NoOpCompiler.java
// public class NoOpCompiler implements ScriptArchiveCompiler {
// 
//     @Override
//     public boolean shouldCompile(ScriptArchive archive) {
//         return true;
//     }
// 
//     @Override
//     public Set<Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, Path targetDir) {
//         return Collections.<Class<?>>emptySet();
//     }
// }


import java.util.Collections;
import java.util.Map;
import java.util.Set;
import com.netflix.nicobar.core.compile.ScriptArchiveCompiler;
import com.netflix.nicobar.core.internal.compile.NoOpCompiler;
/*
 * Copyright 2013 Netflix, Inc.
 *
 *      Licensed under the Apache License, Version 2.0 (the "License");
 *      you may not use this file except in compliance with the License.
 *      You may obtain a copy of the License at
 *
 *          http://www.apache.org/licenses/LICENSE-2.0
 *
 *      Unless required by applicable law or agreed to in writing, software
 *      distributed under the License is distributed on an "AS IS" BASIS,
 *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *      See the License for the specific language governing permissions and
 *      limitations under the License.
 */
package com.netflix.nicobar.core.plugin;



/**
 * A {@link ScriptCompilerPlugin} for script archives with a no-op compiler included.
 * Intended for use during testing.
 *
 * @author Vasanth Asokan
 */
public class TestCompilerPlugin implements ScriptCompilerPlugin {

    public static final String PLUGIN_ID = "nolang";

    @Override
// Path: nicobar-core/src/main/java/com/netflix/nicobar/core/compile/ScriptArchiveCompiler.java
// public interface ScriptArchiveCompiler {
//     /**
//      * Whether or not this compiler should be used to compile the archive
//      */
//     public boolean shouldCompile(ScriptArchive archive);
// 
//     /**
//      * Compile the archive into a ScriptModule
//      * @param archive archive to generate class files for
//      * @param moduleClassLoader class loader which can be used to find all classes and resources for modules.
//      *  The resultant classes of the compile operation should be injected into the classloader
//      *  for which the given archive has a declared dependency on
//      * @param targetDir a directory in which to store compiled classes, if any.
//      * @return The set of classes that were compiled
//      * @throws ScriptCompilationException if there was a compilation issue in the archive.
//      * @throws IOException if there was a problem reading/writing the archive
//      */
//     public Set<Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, Path targetDir) throws ScriptCompilationException, IOException;
// }
// 
// Path: nicobar-core/src/main/java/com/netflix/nicobar/core/internal/compile/NoOpCompiler.java
// public class NoOpCompiler implements ScriptArchiveCompiler {
// 
//     @Override
//     public boolean shouldCompile(ScriptArchive archive) {
//         return true;
//     }
// 
//     @Override
//     public Set<Class<?>> compile(ScriptArchive archive, JBossModuleClassLoader moduleClassLoader, Path targetDir) {
//         return Collections.<Class<?>>emptySet();
//     }
// }


// Path: nicobar-core/src/main/java/com/netflix/nicobar/core/plugin/TestCompilerPlugin.java
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import com.netflix.nicobar.core.compile.ScriptArchiveCompiler;
import com.netflix.nicobar.core.internal.compile.NoOpCompiler;

/*
 * Copyright 2013 Netflix, Inc.
 *
 *      Licensed under the Apache License, Version 2.0 (the "License");
 *      you may not use this file except in compliance with the License.
 *      You may obtain a copy of the License at
 *
 *          http://www.apache.org/licenses/LICENSE-2.0
 *
 *      Unless required by applicable law or agreed to in writing, software
 *      distributed under the License is distributed on an "AS IS" BASIS,
 *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *      See the License for the specific language governing permissions and
 *      limitations under the License.
 */
package com.netflix.nicobar.core.plugin;



/**
 * A {@link ScriptCompilerPlugin} for script archives with a no-op compiler included.
 * Intended for use during testing.
 *
 * @author Vasanth Asokan
 */
public class TestCompilerPlugin implements ScriptCompilerPlugin {

    public static final String PLUGIN_ID = "nolang";

    @Override
    public Set<? extends ScriptArchiveCompiler> getCompilers(Map<String, Object> compilerParams) {