javax.wbem.provider
Interface Provider

All Known Subinterfaces:
AssociatorProvider, IndicationProvider, InstanceProvider, MethodProvider

public interface Provider

This interface must be implemented by all providers.

Since:
JSR48 1.0.0

Method Summary
 void close()
          Called by the Provider Object Manager Adapter when the provider is unloaded.
 void initialize(ProviderHandle handle)
          Called by the Provider Object Manager Adapter when the provider is loaded.
 

Method Detail

close

public void close()
           throws WBEMException
Called by the Provider Object Manager Adapter when the provider is unloaded.

Throws:
WBEMException

initialize

public void initialize(ProviderHandle handle)
                throws WBEMException
Called by the Provider Object Manager Adapter when the provider is loaded. This method will be called only once; i.e. cleanup() must be called before initialize() is called again.

Parameters:
handle - a handle that can be used to perform operations
Throws:
WBEMException - If unsuccessful, one of the following status codes may be returned. The ORDERED list is:
  • CIM_ERR_FAILED (some other unspecified error occurred)


Java™ WBEM (JSR48) 1.0.0 API