Skip to content

Commit b762cad

Browse files
committed
SWS-231
1 parent 4acc73e commit b762cad

File tree

1 file changed

+15
-3
lines changed
  • core-tiger/src/main/java/org/springframework/ws/server/endpoint/annotation

1 file changed

+15
-3
lines changed

core-tiger/src/main/java/org/springframework/ws/server/endpoint/annotation/Endpoint.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,33 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25+
import org.springframework.stereotype.Component;
2526
import org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping;
2627
import org.springframework.ws.soap.server.endpoint.mapping.SoapActionAnnotationMethodEndpointMapping;
2728

2829
/**
29-
* Marks a class as an endpoint.
30+
* Indicates that an annotated class is an "Endpoint" (e.g. a web service endpoint).
3031
* <p/>
31-
* Instances of this class are typically picked up by an {@link AbstractAnnotationMethodEndpointMapping} implementation,
32-
* such as {@link SoapActionAnnotationMethodEndpointMapping}.
32+
* This annotation serves as a specialization of {@link Component @Component}, allowing for implementation classes to be
33+
* autodetected through classpath scanning. Instances of this class are typically picked up by an {@link
34+
* AbstractAnnotationMethodEndpointMapping} implementation, such as {@link SoapActionAnnotationMethodEndpointMapping}.
3335
*
3436
* @author Arjen Poutsma
37+
* @see org.springframework.context.annotation.ClassPathBeanDefinitionScanner
3538
* @since 1.0.0
3639
*/
3740
@Target(ElementType.TYPE)
3841
@Retention(RetentionPolicy.RUNTIME)
3942
@Documented
43+
@Component
4044
public @interface Endpoint {
4145

46+
/**
47+
* The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an
48+
* autodetected component.
49+
*
50+
* @return the suggested component name, if any
51+
*/
52+
String value() default "";
53+
4254
}

0 commit comments

Comments
 (0)