felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1329683 - /felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java
Date Tue, 24 Apr 2012 12:50:14 GMT
Author: fmeschbe
Date: Tue Apr 24 12:50:14 2012
New Revision: 1329683

URL: http://svn.apache.org/viewvc?rev=1329683&view=rev
Log:
FELIX-3480 Add SynchronousConfigurationListener interface (as long as it is not officially
available)

Added:
    felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java

Added: felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java
URL: http://svn.apache.org/viewvc/felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java?rev=1329683&view=auto
==============================================================================
--- felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java
(added)
+++ felix/sandbox/fmeschbe/configadmin-R5/src/main/java/org/osgi/service/cm/SynchronousConfigurationListener.java
Tue Apr 24 12:50:14 2012
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) OSGi Alliance (2012). 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.cm;
+
+/**
+ * Synchronous Listener for Configuration Events. When a
+ * {@code ConfigurationEvent} is fired, it is synchronously delivered to a
+ * {@code SynchronousConfigurationListener}.
+ * 
+ * <p>
+ * {@code SynchronousConfigurationListener} objects are registered with the
+ * Framework service registry and are synchronously notified with a
+ * {@code ConfigurationEvent} object when an event is fired.
+ * <p>
+ * {@code SynchronousConfigurationListener} objects can inspect the received
+ * {@code ConfigurationEvent} object to determine its type, the PID of the
+ * {@code Configuration} object with which it is associated, and the
+ * Configuration Admin service that fired the event.
+ * 
+ * <p>
+ * Security Considerations. Bundles wishing to synchronously monitor
+ * configuration events will require
+ * {@code ServicePermission[SynchronousConfigurationListener,REGISTER]} to
+ * register a {@code SynchronousConfigurationListener} service.
+ * 
+ * @version $Id: 0255bdb6d59c98dd25bfc3c90e35b20f2912f9e1 $
+ * @since 1.5
+ */
+public interface SynchronousConfigurationListener extends ConfigurationListener {
+	// Marker interface
+}



Mime
View raw message