Sdílet prostřednictvím


ServiceLoader.Reload Method

Definition

Clear this loader's provider cache so that all providers will be reloaded.

[Android.Runtime.Register("reload", "()V", "")]
public void Reload ();
[<Android.Runtime.Register("reload", "()V", "")>]
member this.Reload : unit -> unit
Attributes

Remarks

Clear this loader's provider cache so that all providers will be reloaded.

After invoking this method, subsequent invocations of the #iterator() iterator method will lazily look up and instantiate providers from scratch, just as is done by a newly-created loader.

This method is intended for use in situations in which new providers can be installed into a running Java virtual machine.

Java documentation for java.util.ServiceLoader.reload().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to