complete dependency inject CRUD implementations
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / NeutronVpnIpSecSiteConnectionsNorthbound.java
index 208919f828cd0474ec473cecb8e0ac24e51c0def..1a487801d91d3f91d742233b517f3cfa899891e1 100644 (file)
@@ -10,6 +10,8 @@ package org.opendaylight.neutron.northbound.api;
 import java.net.HttpURLConnection;
 import java.util.ArrayList;
 import java.util.List;
+import javax.inject.Inject;
+import javax.inject.Singleton;
 import javax.ws.rs.Consumes;
 import javax.ws.rs.DELETE;
 import javax.ws.rs.GET;
@@ -26,10 +28,12 @@ import org.codehaus.enunciate.jaxrs.StatusCodes;
 import org.codehaus.enunciate.jaxrs.TypeHint;
 import org.opendaylight.neutron.spi.INeutronVpnIpSecSiteConnectionsCRUD;
 import org.opendaylight.neutron.spi.NeutronVpnIpSecSiteConnection;
+import org.ops4j.pax.cdi.api.OsgiService;
 
 /**
  * Neutron Northbound REST APIs for VPN IPSEC SiteConnection.<br>
  */
+@Singleton
 @Path("/vpn/ipsecsiteconnections")
 public final class NeutronVpnIpSecSiteConnectionsNorthbound
         extends AbstractNeutronNorthbound<NeutronVpnIpSecSiteConnection,
@@ -37,6 +41,11 @@ public final class NeutronVpnIpSecSiteConnectionsNorthbound
 
     private static final String RESOURCE_NAME = "VPNIPSECSiteConnections";
 
+    @Inject
+    public NeutronVpnIpSecSiteConnectionsNorthbound(@OsgiService INeutronVpnIpSecSiteConnectionsCRUD neutronCRUD) {
+        super(neutronCRUD);
+    }
+
     @Override
     protected String getResourceName() {
         return RESOURCE_NAME;