Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) OSGi Alliance (2004, 2010). 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
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * 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.

Version:
$Id: a3378152d876cfaf4b41a26596f1cfbaff2afa48 $
public interface MonitorListener {
    
Callback for notification of a StatusVariable change.

Parameters:
monitorableId the identifier of the Monitorable instance reporting the change
statusVariable the StatusVariable that has changed
Throws:
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 statusVariable)
            throws IllegalArgumentException;
New to GrepCode? Check out our FAQ X