cometd-java/cometd-java-annotation/cometd-java-annotation-server/src/main/java/org/cometd/annotation/server/ServerAnnotationProcessor.java
/**
     * Processes the callbacks annotated with {@link Listener}, {@link Subscription}
     * and {@link RemoteCall}.
     *
     * @param bean the annotated service instance
     * @return true if at least one annotated callback has been processed, false otherwise
     */
Processes the callbacks annotated with  Listener,  Subscription
and  RemoteCall.

@param bean the annotated service instance
@return true if at least one annotated callback has been processed, false otherwise
Processes the callbacks annotated with Listener Subscription and RemoteCall . @param bean the annotated service instance @return true if at least one annotated callback has been processed false otherwise
public boolean processCallbacks(Object bean) {
        if (bean == null) {
            return false;
        }
        Class<?> klass = bean.getClass();
        Service serviceAnnotation = klass.getAnnotation(Service.class);
        if (serviceAnnotation == null) {
            return false;
        }
        if (!Modifier.isPublic(klass.getModifiers())) {
            throw new IllegalArgumentException("Service class " + klass.getName() + " must be public");
        }
        LocalSession session = findOrCreateLocalSession(bean, serviceAnnotation.value());
        boolean result = processListener(bean, session);
        result |= processSubscription(bean, session);
        result |= processRemoteCall(bean, session);
        return result;
    }
public boolean processCallbacks ( Object bean ) { if ( bean == null ) { return false ; } Class < ? > klass = bean . getClass ( ) ; Service serviceAnnotation = klass . getAnnotation ( Service . class ) ; if ( serviceAnnotation == null ) { return false ; } if ( ! Modifier . isPublic ( klass . getModifiers ( ) ) ) { throw new IllegalArgumentException ( "Service class " + klass . getName ( ) + " must be public" ) ; } LocalSession session = findOrCreateLocalSession ( bean , serviceAnnotation . value ( ) ) ; boolean result = processListener ( bean , session ) ; result |= processSubscription ( bean , session ) ; result |= processRemoteCall ( bean , session ) ; return result ; }
Processes the callbacks annotated with {@link Listener}, {@link Subscription}
 and {@link RemoteCall}.
Processes the callbacks annotated with { @link Listener } { @link Subscription } and { @link RemoteCall } .