@@ -0,0 +1,1537 @@
+/*%0A * Bach - Java Shell Builder%0A * Copyright (C) 2020 Christian Stein%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     https://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage de.sormuras.bach.internal;%0A%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0A%0A/** A factory method creates a new instance of the class that encloses the annotated element. */%0A@Target(ElementType.METHOD)%0A@Retention(RetentionPolicy.SOURCE)%0Apublic @interface Factory %7B%0A%0A  /** A description of the input sources the factory method. */%0A  enum Kind %7B%0A%0A    /** A static factory method that creates a new instance using any parameters. */%0A    STATIC,%0A%0A    /** An instance factory method that replaces a single component of the instance. */%0A    COMPONENT,%0A%0A    /** An instance factory method that augments one or more components with the given arguments. */%0A    GENERATOR%0A  %7D%0A%0A  /**%0A   * Return the factory kind.%0A   *%0A   * @return a kind constant.%0A   */%0A  Kind value() default Kind.STATIC;%0A%7D%0A

Introduce factory annotation