[jboss-osgi-commits] JBoss-OSGI SVN: r101402 - projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/management.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Wed Feb 24 10:00:06 EST 2010


Author: thomas.diesler at jboss.com
Date: 2010-02-24 10:00:04 -0500 (Wed, 24 Feb 2010)
New Revision: 101402

Removed:
   projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/management/ManagedServiceReference.java
Log:
Remove ManagedServiceReference

Deleted: projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/management/ManagedServiceReference.java
===================================================================
--- projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/management/ManagedServiceReference.java	2010-02-24 14:59:23 UTC (rev 101401)
+++ projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/management/ManagedServiceReference.java	2010-02-24 15:00:04 UTC (rev 101402)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.osgi.spi.management;
-
-import java.io.Serializable;
-import java.util.Map;
-import java.util.Set;
-
-import org.osgi.framework.ServiceReference;
-
-/**
- * The management view of an OSGi {@link ServiceReference}
- * 
- * @author Thomas.Diesler at jboss.org
- * @since 25-Sep-2008
- */
-public class ManagedServiceReference implements Serializable
-{
-   private static final long serialVersionUID = 1L;
-   
-   private Map<String, Object> props;
-   
-   public ManagedServiceReference(Map<String, Object> props)
-   {
-      this.props = props;
-   }
-
-   /**
-    * Returns the property value to which the specified property key is mapped 
-    * in the properties Dictionary object of the service referenced by this 
-    * ServiceReference object.
-    */
-   public Object getProperty(String key)
-   {
-      return props.get(key);
-   }
-
-   /**
-    * Returns an array of the keys in the properties Dictionary 
-    * object of the service referenced by this ServiceReference  object. 
-    */
-   public String[] getPropertyKeys()
-   {
-      Set<String> keySet = props.keySet();
-      return keySet.toArray(new String[keySet.size()]);
-   }
-}



More information about the jboss-osgi-commits mailing list