File tree Expand file tree Collapse file tree
src/main/java/org/nasdanika/launcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import java .util .Collections ;
55import java .util .List ;
66
7- import org .nasdanika .capability .CapabilityFactory ;
87import org .nasdanika .capability .CapabilityLoader ;
98import org .nasdanika .capability .CapabilityProvider ;
109import org .nasdanika .capability .ServiceCapabilityFactory ;
@@ -41,13 +40,7 @@ public static void main(String[] args) {
4140 if (rootCommand instanceof Closeable ) {
4241 ((Closeable ) rootCommand ).close (progressMonitor .split ("Closing root command" , 1 ));
4342 }
44-
45- // Closing factories
46- for (CapabilityFactory <Object , Object > cf : capabilityLoader .getFactories ()) {
47- if (cf instanceof Closeable ) {
48- ((Closeable ) cf ).close (progressMonitor .split ("Closing capability factory" , 1 ));
49- }
50- }
43+ capabilityLoader .close (progressMonitor .split ("Closing capability loader" , 1 ));
5144 }
5245 System .exit (exitCode );
5346 }
You can’t perform that action at this time.
0 commit comments