@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=EventSourceBeanRegistrar.class) @Repeatable(value=EnableEventSources.class) public @interface EnableEventSource
event sources.
A Spring bean with type EventSource is registered at the ApplicationContext. The name of the
beans is specified by name().
The EventSource.getStreamName() is configured using streamName(). If streamName is not set, the
name of the bean is used instead.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
name
The name of the registered EventSource bean.
|
java.lang.String |
streamName
The name of the event stream.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
builder
The optional name of the EventSourceBuilder bean used to construct the EventSource instance.
|
public abstract java.lang.String name
If name() is not set, the name of the bean is derived from the name of the stream.