private void generateContextHandlerMeta ( final Set < Bean < ? > > processBeans ) { for ( final Bean < ? > latkeBean : processBeans ) { final Class < ? > clz = latkeBean . getBeanClass ( ) ; final Method [ ] declaredMethods = clz . getDeclaredMethods ( ) ; for ( int i = 0 ; i < declaredMethods . length ; i ++ ) { final Method method = declaredMethods [ i ] ; final RequestProcessing requestProcessingMethodAnn = method . getAnnotation ( RequestProcessing . class ) ; if ( null == requestProcessingMethodAnn ) { continue ; } final ContextHandlerMeta contextHandlerMeta = new ContextHandlerMeta ( ) ; contextHandlerMeta . setUriTemplates ( requestProcessingMethodAnn . value ( ) ) ; contextHandlerMeta . setHttpMethods ( requestProcessingMethodAnn . method ( ) ) ; contextHandlerMeta . setInvokeHolder ( method ) ; contextHandlerMeta . initProcessAdvices ( ) ; addContextHandlerMeta ( contextHandlerMeta ) ; } } }
Scan beans to get the context handler meta .