Setting Up a Provider

Before a requestor can interact with our Time-based Alarm (provider), the provider must be enabled to receive get, set, and invoke operation requests. Here we create a DOFObject for the provider. This is done by calling the DOFSystem.createObject method and passing in the provider's OID.

DOFObjects and Providers

For a DOFObject to act as a provider, you must implement an interface that enables the DOFObject to listen for and respond to operations from requestors.

If the interface defines properties or methods that correspond with these operations but you do not override the get, set, or invoke methods, the OAL returns a “not supported” exception. In this case, the provider is in "breach of its contract." A provider application must always override the default behavior of the get, set, or invoke callbacks if the DOF interface defines corresponding items of functionality.

How It Works

To create a DOFObject, you must have a DOFObjectID. When creating the provider, the DOFObjectID is the identifier used to target operations to that provider.