Bootstrap_Test.java (a5b190bf) Bootstrap_Test.java (de739a45)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 47 unchanged lines hidden (view full) ---

56 }
57
58 XMultiServiceFactory msf = UnoRuntime.queryInterface(
59 XMultiServiceFactory.class, xContext.getServiceManager() );
60 String services[] = msf.getAvailableServiceNames();
61 System.out.println("Available services are:");
62 System.err.println();
63 if (services.length == 0)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 47 unchanged lines hidden (view full) ---

56 }
57
58 XMultiServiceFactory msf = UnoRuntime.queryInterface(
59 XMultiServiceFactory.class, xContext.getServiceManager() );
60 String services[] = msf.getAvailableServiceNames();
61 System.out.println("Available services are:");
62 System.err.println();
63 if (services.length == 0)
64 System.out.println("No services avialable!");
64 System.out.println("No services available!");
65
66 else
67 for ( int i=0; i<services.length; i++ )
68 System.out.println(services[i]);
69
70 XComponent xComp = UnoRuntime.queryInterface(
71 XComponent.class, xContext );
72 xComp.dispose();

--- 41 unchanged lines hidden ---
65
66 else
67 for ( int i=0; i<services.length; i++ )
68 System.out.println(services[i]);
69
70 XComponent xComp = UnoRuntime.queryInterface(
71 XComponent.class, xContext );
72 xComp.dispose();

--- 41 unchanged lines hidden ---