Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) OSGi Alliance (2004, 2013). All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.osgi.service.monitor;

The MonitorListener is used by Monitorable services to send notifications when a StatusVariable value is changed. The MonitorListener should register itself as a service at the OSGi Service Registry. This interface must (only) be implemented by the Monitor Admin component.

$Id: 10e47ce42f90aaa0c142346c0d0dc32132a12dae $
public interface MonitorListener {
Callback for notification of a StatusVariable change.

monitorableId the identifier of the Monitorable instance reporting the change
statusVariable the StatusVariable that has changed
java.lang.IllegalArgumentException if the specified monitorable ID is invalid (null, empty, or contains illegal characters) or points to a non-existing Monitorable, or if statusVariable is null
	public void updated(String monitorableIdStatusVariable statusVariablethrows IllegalArgumentException;
New to GrepCode? Check out our FAQ X