org.cometd.java.annotation
Annotation Type Service


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Service

Identifies classes whose instances are services that interact with the Bayeux API.

A service can register callback methods by annotating them with Listener or with Subscription.

Service objects are configured by ServerAnnotationProcessors or by ClientAnnotationProcessors.

Services can have an optional name that is used as a prefix for the session identifier, thus helping in debug and logging.


Optional Element Summary
 String value
           
 

value

public abstract String value
Returns:
The name of this service
Default:
""


Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.