27 lines
775 B
Java
27 lines
775 B
Java
package io.reflectoring.buckpal.common;
|
|
|
|
import org.springframework.core.annotation.AliasFor;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import java.lang.annotation.Documented;
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
@Target({ElementType.TYPE})
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
@Component
|
|
public @interface WebAdapter {
|
|
|
|
/**
|
|
* The value may indicate a suggestion for a logical component name,
|
|
* to be turned into a Spring bean in case of an autodetected component.
|
|
* @return the suggested component name, if any (or empty String otherwise)
|
|
*/
|
|
@AliasFor(annotation = Component.class)
|
|
String value() default "";
|
|
|
|
}
|