Condividi tramite


LogManager.AddPropertyChangeListener(IPropertyChangeListener) Method

Definition

Adds an event listener to be invoked when the logging properties are re-read.

[Android.Runtime.Register("addPropertyChangeListener", "(Ljava/beans/PropertyChangeListener;)V", "GetAddPropertyChangeListener_Ljava_beans_PropertyChangeListener_Handler")]
public virtual void AddPropertyChangeListener (Java.Beans.IPropertyChangeListener? l);
[<Android.Runtime.Register("addPropertyChangeListener", "(Ljava/beans/PropertyChangeListener;)V", "GetAddPropertyChangeListener_Ljava_beans_PropertyChangeListener_Handler")>]
abstract member AddPropertyChangeListener : Java.Beans.IPropertyChangeListener -> unit
override this.AddPropertyChangeListener : Java.Beans.IPropertyChangeListener -> unit

Parameters

l
IPropertyChangeListener

event listener

Attributes

Remarks

Adds an event listener to be invoked when the logging properties are re-read. Adding multiple instances of the same event Listener results in multiple entries in the property event listener table.

<b>WARNING:</b> This method is omitted from this class in all subset Profiles of Java SE that do not include the java.beans package.

This member is deprecated. The dependency on PropertyChangeListener creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. The global LogManager can detect changes to the logging configuration by overridding the #readConfiguration readConfiguration method.

Java documentation for java.util.logging.LogManager.addPropertyChangeListener(java.beans.PropertyChangeListener).

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