All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.annotation.AService Maven / Gradle / Ivy

The newest version!
package com.litongjava.annotation;

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;

/**
 * Indicates that an annotated class is a "Service", originally defined by Domain-Driven
 * Design (Evans, 2003) as "an operation offered as an interface that stands alone in the
 * model, with no encapsulated state."
 *
 * 

May also indicate that a class is a "Business Service Facade" (in the Core J2EE * patterns sense), or something similar. This annotation is a general-purpose stereotype * and individual teams may narrow their semantics and use as appropriate. * *

This annotation serves as a specialization of {@link AComponent @Component}, * allowing for implementation classes to be autodetected through classpath scanning. * * @author Juergen Hoeller * @since 2.5 * @see AComponent * @see ARepository */ @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @AComponent public @interface AService { /** * 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 = AComponent.class) String value() default ""; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy