void function ( ) { ServiceLoader < ActionHandler > loc0 = ServiceLoader . load ( ActionHandler . class ) ; for ( ActionHandler loc1 : loc0 ) { if ( loc1 != null ) { addAction ( loc1 . getName ( ) , loc1 ) ; } } }
uses serviceloader to find all actionhandlers in classpath . adds them as handlers with the route key returned by getname method . concode_field_sep ConcurrentMap<String,ActionHandler> actions concode_elem_sep Set<String> BLACKLISTED_ACTIONS concode_elem_sep String PROPERTY_BLACKLIST concode_elem_sep boolean GATHER_METRICS concode_elem_sep Logger LOG concode_elem_sep String METRICS_PREFIX concode_elem_sep String PROPERTY_WHITELIST concode_elem_sep MetricRegistry METRIC_REGISTRY concode_elem_sep String PARAM_ROUTE concode_elem_sep Set<String> WHITELISTED_ACTIONS concode_field_sep void addAction concode_elem_sep void addAction concode_elem_sep void addAction concode_elem_sep boolean hasAction concode_elem_sep void addActions concode_elem_sep void routeAction concode_elem_sep MetricRegistry getMetrics concode_elem_sep void teardown concode_elem_sep boolean isAllowedKey