package org.camunda.bpm.spring.boot.starter.annotation;

import org.camunda.bpm.spring.boot.starter.SpringBootProcessApplication;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(SpringBootProcessApplication.class)
@Documented
@Inherited
public @interface EnableProcessApplication {

  String value() default "";
}

@@ -50,16 +50,87 @@
 ation;%0A%0A
+import org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration;%0A
 import o
@@ -490,16 +490,711 @@
 arget;%0A%0A
+/**%0A * Annotation that disables the %7B@link SpringProcessEngineConfiguration%7D%0A * auto-deploy feature and instead uses the required META-INF/processes.xml%0A * as an indicator for resource scanning. This also allows all processes.xml%0A * configuration features described here:%0A * %3Ca href=%22https://docs.camunda.org/manual/latest/user-guide/process-applications/the-processes-xml-deployment-descriptor/%22%3EThe processes.xml Deployment Descriptor%3C/a%3E%0A * %0A * %3Cp%3ETo use it, just add the annotation to your Spring Boot application class:%3C/p%3E%0A * %3Cpre%3E%0A * &#64;SpringBootApplication%0A * &#64;EnableProcessApplication(%22myProcessApplicationName%22)%0A * public class MyApplication %7B%0A * %0A * ...%0A * %0A * %7D%0A * %3C/pre%3E%0A */%0A
 @Target(

add JavaDoc to annotation