added stereotype annotations
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
package io.reflectoring.reviewapp.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 OutputAdapter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 "";
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package io.reflectoring.reviewapp.common;
|
||||||
|
|
||||||
|
import org.springframework.core.annotation.AliasFor;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
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 PersistenceAdapter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 "";
|
||||||
|
|
||||||
|
}
|
||||||
26
src/main/java/io/reflectoring/reviewapp/common/UseCase.java
Normal file
26
src/main/java/io/reflectoring/reviewapp/common/UseCase.java
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
package io.reflectoring.reviewapp.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 UseCase {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 "";
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package io.reflectoring.reviewapp.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 "";
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user