cometd-java/cometd-java-annotation/cometd-java-annotation-server/src/main/java/org/cometd/annotation/server/ServerAnnotationProcessor.java
/**
     * Processes the dependencies annotated with {@link Inject} and {@link Session}.
     *
     * @param bean the annotated service instance
     * @return true if at least one annotated dependency has been processed, false otherwise
     */
Processes the dependencies annotated with  Inject and  Session.
@param bean the annotated service instance
@return true if at least one annotated dependency has been processed, false otherwise
Processes the dependencies annotated with Inject and Session . @param bean the annotated service instance @return true if at least one annotated dependency has been processed false otherwise
public boolean processDependencies(Object bean) {
        if (bean == null) {
            return false;
        }
        Class<?> klass = bean.getClass();
        Service serviceAnnotation = klass.getAnnotation(Service.class);
        if (serviceAnnotation == null) {
            return false;
        }
        List<Object> injectables = new ArrayList<>(Arrays.asList(this.injectables));
        injectables.add(0, bayeuxServer);
        boolean result = processInjectables(bean, injectables);
        LocalSession session = findOrCreateLocalSession(bean, serviceAnnotation.value());
        result |= processSession(bean, session);
        return result;
    }
public boolean processDependencies ( Object bean ) { if ( bean == null ) { return false ; } Class < ? > klass = bean . getClass ( ) ; Service serviceAnnotation = klass . getAnnotation ( Service . class ) ; if ( serviceAnnotation == null ) { return false ; } List < Object > injectables = new ArrayList < > ( Arrays . asList ( this . injectables ) ) ; injectables . add ( 0 , bayeuxServer ) ; boolean result = processInjectables ( bean , injectables ) ; LocalSession session = findOrCreateLocalSession ( bean , serviceAnnotation . value ( ) ) ; result |= processSession ( bean , session ) ; return result ; }
Processes the dependencies annotated with {@link Inject} and {@link Session}.
Processes the dependencies annotated with { @link Inject } and { @link Session } .