Top Description Fields Methods
org.glassfish.hk2.api.messaging

public @Interface MessageReceiver

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Qualifier
@Target:TYPE, METHOD
Static Imports
java.lang.annotation.ElementType.METHOD, .ElementType.TYPE, .RetentionPolicy.RUNTIME

This qualifier must be placed on any hk2 descriptor that can receive messages. This includes message receiver classes automatically analyzed by hk2, or any org.glassfish.hk2.api.Factory#provide() methods automatically analyzed by hk2 or any user-defined org.glassfish.hk2.api.Descriptor who can receive messages
Author
jwells

Field Summary

Modifier and TypeField and Description
public static final String

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]

Returns:

A list of the classes that might be received as topic messages. If the empty set then this class might receive any topic event
value
()

A list of message types that this service may receive.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

EVENT_RECEIVER_TYPESback to summary
public static final String EVENT_RECEIVER_TYPES

Method Detail

valueback to summary
public Class<?>[] value()

A list of message types that this service may receive. The default value of an empty array represents any message type. Be warned that if the default value is used that any event being fired will cause the descriptor with this qualifier to get reified (classloaded) which may be expensive. In order to have a more efficient application it is better to fill this value in with all the event types this service might receive

Returns:Class<?>[]

A list of the classes that might be received as topic messages. If the empty set then this class might receive any topic event

Annotations
@Metadata:org.glassfish.hk2.messaging.messageReceiverTypes