public static void verifyTargets ( ITargetHandlerResolver targetHandlerResolver , ManagedApplication ma , ITargetsMngr targetsMngr ) { Logger logger = Logger . getLogger ( TargetHelpers . class . getName ( ) ) ; for ( Instance inst : InstanceHelpers . getAllInstances ( ma . getApplication ( ) ) ) { if ( ! InstanceHelpers . isTarget ( inst ) ) continue ; try { String path = InstanceHelpers . computeInstancePath ( inst ) ; Map < String , String > targetProperties = targetsMngr . findTargetProperties ( ma . getApplication ( ) , path ) . asMap ( ) ; targetHandlerResolver . findTargetHandler ( targetProperties ) ; } catch ( TargetException e ) { logger . warning ( e . getMessage ( ) ) ; } } }
Verifies that all the target handlers an application needs are installed .