protected synchronized void unsetHandler ( ServiceReference < Handler > handlerRef ) { jaxwsInFlowClientSideGlobalHandlers . removeReference ( handlerRef ) ; jaxwsOutFlowClientSideGlobalHandlers . removeReference ( handlerRef ) ; jaxwsInFlowServerSideGlobalHandlers . removeReference ( handlerRef ) ; jaxwsOutFlowServerSideGlobalHandlers . removeReference ( handlerRef ) ; jaxrsInFlowClientSideGlobalHandlers . removeReference ( handlerRef ) ; jaxrsOutFlowClientSideGlobalHandlers . removeReference ( handlerRef ) ; jaxrsInFlowServerSideGlobalHandlers . removeReference ( handlerRef ) ; jaxrsOutFlowServerSideGlobalHandlers . removeReference ( handlerRef ) ; String importPackage = handlerRef . getBundle ( ) . getHeaders ( "" ) . get ( "Import-package" ) ; String dynamicImportPackage = handlerRef . getBundle ( ) . getHeaders ( "" ) . get ( "DynamicImport-Package" ) ; if ( ( importPackage != null && importPackage . contains ( "javax.xml.ws.handler.soap" ) ) || ( dynamicImportPackage != null && dynamicImportPackage . contains ( "javax.xml.ws.handler.soap" ) ) ) { saajCount . getAndDecrement ( ) ; } clearAllList ( ) ; //jaxws Iterator < Handler > registeredHandlers = jaxwsInFlowServerSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxwsInFlowServerSideGlobalHandlers1 . add ( registeredHandlers . next ( ) ) ; } registeredHandlers = jaxwsOutFlowServerSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxwsOutFlowServerSideGlobalHandlers1 . add ( 0 , registeredHandlers . next ( ) ) ; } registeredHandlers = jaxwsInFlowClientSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxwsInFlowClientSideGlobalHandlers1 . add ( registeredHandlers . next ( ) ) ; } registeredHandlers = jaxwsOutFlowClientSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxwsOutFlowClientSideGlobalHandlers1 . add ( 0 , registeredHandlers . next ( ) ) ; } //jaxrs registeredHandlers = jaxrsOutFlowServerSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxrsOutFlowServerSideGlobalHandlers1 . add ( 0 , registeredHandlers . next ( ) ) ; } registeredHandlers = jaxrsInFlowServerSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxrsInFlowServerSideGlobalHandlers1 . add ( registeredHandlers . next ( ) ) ; } registeredHandlers = jaxrsOutFlowClientSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxrsOutFlowClientSideGlobalHandlers1 . add ( 0 , registeredHandlers . next ( ) ) ; } registeredHandlers = jaxrsInFlowClientSideGlobalHandlers . getServices ( ) ; while ( registeredHandlers . hasNext ( ) ) { jaxrsInFlowClientSideGlobalHandlers1 . add ( registeredHandlers . next ( ) ) ; } }
Create a monitor holder for the given FileMonitor . The type of holder we create will depend