The sample MOF file in Example 7-5 creates a class called Fruit that registers an instance provider (fruit_class_provider), a property provider (fruit_prop_provider), and a method provider (fruit_method_provider).
// Registers fruit_class_provider as the provider for the Fruit class
[Provider("com.food.fruitprovider.fruit_class_provider")]
Fruit {
// fruit_prop_provider is the provider for property a
[Provider("com.food.fruitprovider.fruit_class_provider")]
- string a;
// fruit_prop_provider is also the provider for property b
[Provider("com.food.fruitprovider.fruit_class_provider")]
string b;
// fruit_method_provider is the provider for method b
[Provider("com.food.fruitprovider.fruit_class_provider")]
int b();
};
|