-
@Qualifier @Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER}) public @interface Push
The CDI annotation
@
Push
allows you to inject aPushContext
associated with a given channel in any container managed artifact in WAR (not in EAR/EJB!).@Inject @Push private PushContext channelName;
For detailed usage instructions, see
Socket
javadoc.- Since:
- 2.3
- Author:
- Bauke Scholtz
- See Also:
Socket
-
-
Element Detail
-
channel
String channel
(Optional) The name of the push channel. If not specified the name of the injection target field will be used.- Returns:
- The name of the push channel.
- Default:
- ""
-
-