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.
* @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<>();