// Path: gmaven-adapter-api/src/main/java/org/codehaus/gmaven/adapter/ClassSource.java
// @SuppressWarnings("JavadocReference")
// public interface ClassSource
// {
//   URL getUrl();
// 
//   File getFile();
// 
//   interface Inline
//   {
//     String getName();
// 
//     String getCodeBase();
// 
//     Reader getInput();
//   }
// 
//   Inline getInline();
// }
// 
// Path: gmaven-adapter-api/src/main/java/org/codehaus/gmaven/adapter/ClassSource.java
// interface Inline
// {
//   String getName();
// 
//   String getCodeBase();
// 
//   Reader getInput();
// }


import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.Nullable;
import com.google.common.annotations.VisibleForTesting;
import org.codehaus.gmaven.adapter.ClassSource;
import org.codehaus.gmaven.adapter.ClassSource.Inline;
import org.codehaus.plexus.component.annotations.Component;
import org.slf4j.Logger;
/*
 * Copyright (c) 2006-present the original author or authors.
 *
 * 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 org.codehaus.gmaven.plugin;





/**
 * Creates {@link ClassSource} instances
 *
 * @since 2.0
 */
@Component(role = ClassSourceFactory.class)
public class ClassSourceFactory
{
  private final Logger log = LoggerFactory.getLogger(getClass());

  private static final class ClassSourceImpl
// Path: gmaven-adapter-api/src/main/java/org/codehaus/gmaven/adapter/ClassSource.java
// @SuppressWarnings("JavadocReference")
// public interface ClassSource
// {
//   URL getUrl();
// 
//   File getFile();
// 
//   interface Inline
//   {
//     String getName();
// 
//     String getCodeBase();
// 
//     Reader getInput();
//   }
// 
//   Inline getInline();
// }
// 
// Path: gmaven-adapter-api/src/main/java/org/codehaus/gmaven/adapter/ClassSource.java
// interface Inline
// {
//   String getName();
// 
//   String getCodeBase();
// 
//   Reader getInput();
// }


// Path: groovy-maven-plugin/src/main/java/org/codehaus/gmaven/plugin/ClassSourceFactory.java
import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.Nullable;
import com.google.common.annotations.VisibleForTesting;
import org.codehaus.gmaven.adapter.ClassSource;
import org.codehaus.gmaven.adapter.ClassSource.Inline;
import org.codehaus.plexus.component.annotations.Component;
import org.slf4j.Logger;

/*
 * Copyright (c) 2006-present the original author or authors.
 *
 * 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 org.codehaus.gmaven.plugin;





/**
 * Creates {@link ClassSource} instances
 *
 * @since 2.0
 */
@Component(role = ClassSourceFactory.class)
public class ClassSourceFactory
{
  private final Logger log = LoggerFactory.getLogger(getClass());

  private static final class ClassSourceImpl
      implements ClassSource