File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
core-tiger/src/main/java/org/springframework/ws/server/endpoint/annotation Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .springframework .stereotype .Component ;
25
26
import org .springframework .ws .server .endpoint .mapping .AbstractAnnotationMethodEndpointMapping ;
26
27
import org .springframework .ws .soap .server .endpoint .mapping .SoapActionAnnotationMethodEndpointMapping ;
27
28
28
29
/**
29
- * Marks a class as an endpoint.
30
+ * Indicates that an annotated class is an "Endpoint" (e.g. a web service endpoint) .
30
31
* <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}.
33
35
*
34
36
* @author Arjen Poutsma
37
+ * @see org.springframework.context.annotation.ClassPathBeanDefinitionScanner
35
38
* @since 1.0.0
36
39
*/
37
40
@ Target (ElementType .TYPE )
38
41
@ Retention (RetentionPolicy .RUNTIME )
39
42
@ Documented
43
+ @ Component
40
44
public @interface Endpoint {
41
45
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
+
42
54
}
You can’t perform that action at this time.
0 commit comments