@ SuppressWarnings ( "rawtypes" ) public void setupConfigHandlers ( Binding binding , CommonConfig config ) { if ( config != null ) { //start with the use handlers only to remove the previously set configuration List < Handler > userHandlers = getNonConfigHandlers ( binding . getHandlerChain ( ) ) ; List < Handler > handlers = convertToHandlers ( config . getPreHandlerChains ( ) , binding . getBindingID ( ) , true ) ; //PRE handlers . addAll ( userHandlers ) ; //ENDPOINT handlers . addAll ( convertToHandlers ( config . getPostHandlerChains ( ) , binding . getBindingID ( ) , false ) ) ; //POST binding . setHandlerChain ( handlers ) ; } }
Setups a given Binding instance using a specified CommonConfig