org.glassfish.cafe.api.bean
Annotation Type CommunicationBean


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface CommunicationBean

Indicate that the annotated class is a POJO listening to Communication Events or Participant Events.

Author:
binod
See Also:
CommunicationEvent, ParticipantEvent

Optional Element Summary
 String name
          Name of the Communication Bean.
 Class type
          Type of the Communication Bean.
 

name

public abstract String name
Name of the Communication Bean. If name is not specified, container would assume the fully qualified class name as the CommunicationBean. This is typically used to enable configuration of beans in the application server. [Not yet implemented]

Returns:
Default:
""

type

public abstract Class type
Type of the Communication Bean. If the type is specified, then the CommunicationBean will be invoked only for those type of events. If the application does not supply any type, then the CommunicationBean will be invoked for any type of Communication.

Returns:
Default:
java.lang.Object.class


Copyright © 2010. All Rights Reserved.