private String buildTargetString ( List < String > privateLibraries ) { StringBuilder filter = new StringBuilder ( ) ; filter . append ( "(&" ) ; for ( String lib : privateLibraries ) filter . append ( String . format ( "(|(%s=%s)(%s=%s))" , LibraryStatusService . LIBRARY_IDS , lib , LibraryStatusService . LIBRARY_PIDS , lib ) ) ; filter . append ( ")" ) ; return filter . toString ( ) ; } @ Override public String getName ( ) { return "ApplicationClassloaderConfigurationHelper" ; }
This filter will cause the new application classloading service to block until these libraries are active Each library is added twice as it may be an automatic librari in which case its pid will not yet be known so we use the id .