aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r1075096 [13/13] - in /aries/tags/jmx-0.1-incubating: ./ jmx-api/ jmx-api/src/ jmx-api/src/main/ jmx-api/src/main/appended-resources/ jmx-api/src/main/appended-resources/META-INF/ jmx-api/src/main/java/ jmx-api/src/main/java/org/ jmx-api/sr...
Date Sun, 27 Feb 2011 17:58:23 GMT
Added: aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/InterfaceB.java
URL: http://svn.apache.org/viewvc/aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/InterfaceB.java?rev=1075096&view=auto
==============================================================================
--- aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/InterfaceB.java
(added)
+++ aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/InterfaceB.java
Sun Feb 27 17:58:16 2011
@@ -0,0 +1,35 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.apache.aries.jmx.test.bundleb.api;
+
+import java.util.Dictionary;
+
+/**
+ * 
+ *
+ * @version $Rev: 898952 $ $Date: 2010-01-13 21:53:07 +0000 (Wed, 13 Jan 2010) $
+ */
+@SuppressWarnings("unchecked")
+public interface InterfaceB {
+
+    boolean invoke();
+    
+    void configure(Dictionary<String, Object> props);
+    
+    Dictionary getConfig();
+    
+}

Added: aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/MSF.java
URL: http://svn.apache.org/viewvc/aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/MSF.java?rev=1075096&view=auto
==============================================================================
--- aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/MSF.java
(added)
+++ aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/api/MSF.java
Sun Feb 27 17:58:16 2011
@@ -0,0 +1,60 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.apache.aries.jmx.test.bundleb.api;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.aries.jmx.test.bundleb.impl.B;
+import org.osgi.service.cm.ConfigurationException;
+import org.osgi.service.cm.ManagedServiceFactory;
+
+/**
+ * 
+ *
+ * @version $Rev: 898952 $ $Date: 2010-01-13 21:53:07 +0000 (Wed, 13 Jan 2010) $
+ */
+@SuppressWarnings("unchecked")
+public class MSF implements ManagedServiceFactory {
+
+    Map<String, InterfaceB> configured = new HashMap<String, InterfaceB>();
+    
+    public void deleted(String pid) {
+       configured.remove(pid);
+    }
+
+    public String getName() {
+        return "jmx.test.B.factory";
+    }
+
+    public void updated(String pid, Dictionary dictionary) throws ConfigurationException
{
+        if (configured.containsKey(pid)) {
+            configured.get(pid).configure(dictionary);
+        } else {
+            InterfaceB ser = new B();
+            ser.configure(dictionary);
+            configured.put(pid, ser);
+        }
+    }
+
+    // test cback
+    public InterfaceB getConfigured(String pid) {
+        return configured.get(pid);
+    }
+    
+}

Added: aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/impl/B.java
URL: http://svn.apache.org/viewvc/aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/impl/B.java?rev=1075096&view=auto
==============================================================================
--- aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/impl/B.java
(added)
+++ aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/bundleb/impl/B.java
Sun Feb 27 17:58:16 2011
@@ -0,0 +1,45 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.apache.aries.jmx.test.bundleb.impl;
+
+import java.util.Dictionary;
+
+import org.apache.aries.jmx.test.bundleb.api.InterfaceB;
+
+/**
+ * 
+ *
+ * @version $Rev: 898952 $ $Date: 2010-01-13 21:53:07 +0000 (Wed, 13 Jan 2010) $
+ */
+@SuppressWarnings("unchecked")
+public class B implements InterfaceB {
+
+    private Dictionary<String, Object> conf;
+    
+    public boolean invoke() {
+       return (conf == null);
+    }
+
+    public void configure(Dictionary<String, Object> props) {
+        this.conf = props;
+    }
+
+    // test cback
+    public Dictionary getConfig() {
+        return this.conf;
+    }
+}

Added: aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/fragmentc/C.java
URL: http://svn.apache.org/viewvc/aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/fragmentc/C.java?rev=1075096&view=auto
==============================================================================
--- aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/fragmentc/C.java
(added)
+++ aries/tags/jmx-0.1-incubating/jmx-itests/src/test/java/org/apache/aries/jmx/test/fragmentc/C.java
Sun Feb 27 17:58:16 2011
@@ -0,0 +1,30 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.apache.aries.jmx.test.fragmentc;
+
+/**
+ * 
+ *
+ * @version $Rev: 898952 $ $Date: 2010-01-13 21:53:07 +0000 (Wed, 13 Jan 2010) $
+ */
+public class C {
+
+    boolean invoke() {
+        return true;
+    }
+    
+}

Added: aries/tags/jmx-0.1-incubating/pom.xml
URL: http://svn.apache.org/viewvc/aries/tags/jmx-0.1-incubating/pom.xml?rev=1075096&view=auto
==============================================================================
--- aries/tags/jmx-0.1-incubating/pom.xml (added)
+++ aries/tags/jmx-0.1-incubating/pom.xml Sun Feb 27 17:58:16 2011
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <parent>
+        <groupId>org.apache.aries</groupId>
+        <artifactId>java5-parent</artifactId>
+        <version>0.1-incubating</version>
+    </parent>  
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.aries.jmx</groupId>
+    <artifactId>jmx</artifactId>
+    <name>Apache Aries JMX</name>
+    <version>0.1-incubating</version>
+    <packaging>pom</packaging>
+
+
+    <description>Implementation of the JMX Management Model Specification</description>
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/aries/tags/jmx-0.1-incubating</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/aries/tags/jmx-0.1-incubating</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/aries/tags/jmx-0.1-incubating</url>
+    </scm>
+    
+    <dependencyManagement>
+        <dependencies>
+            <!-- internal dependencies -->
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx.api</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx.core</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx.blueprint.api</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx.blueprint.core</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jmx</groupId>
+                <artifactId>org.apache.aries.jmx.blueprint</artifactId>
+                <version>${version}</version>
+            </dependency>
+
+            <!-- external dependencies -->
+            <dependency>
+                <groupId>org.apache.aries</groupId>
+                <artifactId>org.apache.aries.util</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.blueprint</groupId>
+                <artifactId>org.apache.aries.blueprint</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.blueprint</groupId>
+                <artifactId>org.apache.aries.blueprint.sample</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.configadmin</artifactId>
+                <version>1.2.4</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jmock</groupId>
+                <artifactId>jmock-junit4</artifactId>
+                <version>2.5.1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jmock</groupId>
+                <artifactId>jmock-legacy</artifactId>
+                <version>2.5.1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.mockito</groupId>
+                <artifactId>mockito-all</artifactId>
+                <version>1.8.2</version>
+            </dependency>
+            
+        </dependencies>
+    </dependencyManagement>
+    
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <modules>
+        <module>jmx-api</module>
+        <module>jmx-blueprint-api</module>
+        <module>jmx-core</module>
+        <module>jmx-blueprint-core</module>
+        <module>jmx-bundle</module>
+        <module>jmx-blueprint-bundle</module>
+        <module>jmx-itests</module>
+  </modules>
+
+</project>



Mime
View raw message