KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > wmi > ClassFactory


1 // GENERATED. DO NOT MODIFY
2
package wmi;
3
4 import com4j.*;
5
6 /**
7  * Defines methods to create COM objects
8  */

9 public abstract class ClassFactory {
10     private ClassFactory() {} // instanciation is not allowed
11

12
13     /**
14      * Used to obtain Namespace connections
15      */

16     public static ISWbemLocator createSWbemLocator() {
17         return COM4J.createInstance( ISWbemLocator.class, "{76A64158-CB41-11D1-8B02-00600806D9B6}" );
18     }
19
20     /**
21      * A collection of Named Values
22      */

23     public static ISWbemNamedValueSet createSWbemNamedValueSet() {
24         return COM4J.createInstance( ISWbemNamedValueSet.class, "{9AED384E-CE8B-11D1-8B05-00600806D9B6}" );
25     }
26
27     /**
28      * Object Path
29      */

30     public static ISWbemObjectPath createSWbemObjectPath() {
31         return COM4J.createInstance( ISWbemObjectPath.class, "{5791BC26-CE9C-11D1-97BF-0000F81E849C}" );
32     }
33
34     /**
35      * The last error on the current thread
36      */

37     public static ISWbemLastError createSWbemLastError() {
38         return COM4J.createInstance( ISWbemLastError.class, "{C2FEEEAC-CFCD-11D1-8B05-00600806D9B6}" );
39     }
40
41     /**
42      * A sink for events arising from asynchronous operations
43      */

44     public static ISWbemSink createSWbemSink() {
45         return COM4J.createInstance( ISWbemSink.class, "{75718C9A-F029-11D1-A1AC-00C04FB6C223}" );
46     }
47
48     /**
49      * Date & Time
50      */

51     public static ISWbemDateTime createSWbemDateTime() {
52         return COM4J.createInstance( ISWbemDateTime.class, "{47DFBE54-CF76-11D3-B38F-00105A1F473A}" );
53     }
54
55     /**
56      * Refresher
57      */

58     public static ISWbemRefresher createSWbemRefresher() {
59         return COM4J.createInstance( ISWbemRefresher.class, "{D269BF5C-D9C1-11D3-B38F-00105A1F473A}" );
60     }
61 }
62
Popular Tags