1 karl 1.1 Notes on Writing Providers
2
3
4 k. Schopmeyer
5 20 Feb 2001
6
7
8 The following is notes on the rules and problems of writing a provider.
9
10 This is a working document prepared while we are creating our first providers.
11
12
13 Comments
14
15 1. We need a function such as create an instance from a class. This could be
16 a class method, create instance (parameters null or instance naming.
17
18 2. Need an add value for property (given name of property, insert value
19
20 3. Need the same for get property. Give the name and get back either the value
21 or an error (exception, not found).
22 karl 1.1
23 4. To be logically complete we then need the exists functions so say
24 propertyexists (true or false).
25
26
27 Major Questions
28
29 How much does the system know about the class and instance when it receives a
30 request to create an instance. Thus,
31
32 Throwing Exceptions.
33
34 Providers can abnormally terminate by throwing a CIM exception. This
35 exception will be passed back to the initiating client.
36
37 The form of the exception is as follows:
38
39
40
|