Package org.glassfish.hk2.api.messaging
Annotation Type MessageReceiver
This qualifier must be placed on any hk2 descriptor that can
receive messages. This includes message receiver classes automatically
analyzed by hk2, or any
Factory.provide()
methods automatically analyzed by hk2 or any user-defined
Descriptor
who can receive messages-
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
EVENT_RECEIVER_TYPES
- See Also:
-
-
Element Details
-
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:
- A list of the classes that might be received as topic messages. If the empty set then this class might receive any topic event
- Default:
{}
-