* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.odlparent.bundles4test;
+package org.opendaylight.odlparent.bundlestest.lib;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Collectors;
import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Utilities for OSGi's {@link ServiceReference}.
// intentionally just package-local
class ServiceReferenceUtil {
- private static final Logger LOG = LoggerFactory.getLogger(ServiceReferenceUtil.class);
-
public Map<String, Object> getProperties(ServiceReference<?> serviceRef) {
String[] propertyKeys = serviceRef.getPropertyKeys();
Map<String, Object> properties = new HashMap<>(propertyKeys.length);