Quantcast
Viewing all articles
Browse latest Browse all 2218

Stability fix for ProviderAdapters

Hi all,

If you are using a “PropertyProviderAdapter” or a “DataProviderAdapter” and you register the adapter with the DataService registry on creation,

make sure that you unregister the adapter on destruction. This should be done in order to prevent a possible memory leak.

For example:

Unregister:
public void destroy() { _serviceExtensionRegistry.unregisterDataAdapter(this); }

In addition, make sure that you include “destroy-method” attribute in the bean’s definition.

                <bean name="DataProviderImpl"
                            class="com.vmware.samples.vspherewssdk.DataProviderImpl"
                            destroy-method="destroy">


Currently, the issue is reproducible in the WSSDK sample plugin and will be addressed in a future Fling release.

Note: This is a stability improvement, although the case is not currently reproducible in a production environment.

Regards,
Denis


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>