Upgrade to the Neon base platform
[netvirt.git] / cache / impl / src / main / java / org / opendaylight / netvirt / cache / impl / l2gw / L2GatewayCacheImpl.java
index 537ff1d0d6bc066c1746ed436af82246ad5c6292..2384631eeaf4a6ddf4eb0b49573bddaf2f933800 100644 (file)
@@ -12,9 +12,9 @@ import java.util.Collections;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 import javax.inject.Singleton;
+import org.apache.aries.blueprint.annotation.service.Service;
 import org.opendaylight.netvirt.neutronvpn.api.l2gw.L2GatewayCache;
 import org.opendaylight.netvirt.neutronvpn.api.l2gw.L2GatewayDevice;
-import org.ops4j.pax.cdi.api.OsgiServiceProvider;
 
 /**
  * Implementation of L2GatewayCache.
@@ -22,7 +22,7 @@ import org.ops4j.pax.cdi.api.OsgiServiceProvider;
  * @author Thomas Pantelis
  */
 @Singleton
-@OsgiServiceProvider(classes = L2GatewayCache.class)
+@Service(classes = L2GatewayCache.class)
 public class L2GatewayCacheImpl implements L2GatewayCache {
     private final ConcurrentMap<String, L2GatewayDevice> cache = new ConcurrentHashMap<>();