/*
 * Copyright (C) 2013 Google, 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.google.auto.factory;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.TYPE;

import java.lang.annotation.Target;

/**
 * An annotation to be applied to elements for which a factory should be automatically generated.
 *
 * <h2>Visibility
 * <p>The visibility of the generated factories will always be either {@code public} or default
 * visibility. The visibility of any given factory method is determined by the visibility of the
 * type being created. The generated factory is {@code public} if any of the factory methods are.
 * Any method that implements an interface method is necessarily public and any method that
 * overrides an abstract method has the same visibility as that method.
 *
 * @author Gregory Kick
 */
@Target({ TYPE, CONSTRUCTOR })
public @interface AutoFactory {
  /**
   */
  String className() default "";

  /**
   * A list of interfaces that the generated factory is required to implement.
   */
  Class<?>[] implementing() default { };

  /**
   * The type that the generated factory is require to extend.
   */
  Class<?> extending() default Object.class;
}

@@ -1448,24 +1448,379 @@
 ory %7B%0A  /**%0A
+   * The %3Ci%3Esimple%3C/i%3E name of the generated factory; the factory is always generated in the same%0A   * package.  The default value (the empty string) will result in a factory with the name of the%0A   * type being created with %7B@code Factory%7D appended to the end.  E.g.: The default name for a%0A   * factory for %7B@code MyType%7D will be %7B@code MyTypeFactory%7D.%0A
    */%0A  Stri

Add docs for AutoFactory#className. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=65461246