bigswitch-vns: Fix since version in apis, add spring annotation to fix NPE

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-08 16:19:32 +05:30
parent e4b2fe42e0
commit 41fc03d4e7
4 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import com.cloud.network.element.BigSwitchVnsElementService;
import com.cloud.user.UserContext; import com.cloud.user.UserContext;
import com.cloud.utils.exception.CloudRuntimeException; import com.cloud.utils.exception.CloudRuntimeException;
@APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device") @APICommand(name = "addBigSwitchVnsDevice", responseObject=BigSwitchVnsDeviceResponse.class, description="Adds a BigSwitch VNS device", since = "4.1.0")
public class AddBigSwitchVnsDeviceCmd extends BaseAsyncCmd { public class AddBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
private static final String s_name = "addbigswitchvnsdeviceresponse"; private static final String s_name = "addbigswitchvnsdeviceresponse";
@Inject BigSwitchVnsElementService _bigswitchVnsElementService; @Inject BigSwitchVnsElementService _bigswitchVnsElementService;

View File

@ -35,7 +35,7 @@ import com.cloud.network.element.BigSwitchVnsElementService;
import com.cloud.user.UserContext; import com.cloud.user.UserContext;
import com.cloud.utils.exception.CloudRuntimeException; import com.cloud.utils.exception.CloudRuntimeException;
@APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device") @APICommand(name = "deleteBigSwitchVnsDevice", responseObject=SuccessResponse.class, description=" delete a bigswitch vns device", since = "4.1.0")
public class DeleteBigSwitchVnsDeviceCmd extends BaseAsyncCmd { public class DeleteBigSwitchVnsDeviceCmd extends BaseAsyncCmd {
private static final String s_name = "deletebigswitchvnsdeviceresponse"; private static final String s_name = "deletebigswitchvnsdeviceresponse";
@Inject BigSwitchVnsElementService _bigswitchVnsElementService; @Inject BigSwitchVnsElementService _bigswitchVnsElementService;

View File

@ -41,7 +41,7 @@ import com.cloud.network.BigSwitchVnsDeviceVO;
import com.cloud.network.element.BigSwitchVnsElementService; import com.cloud.network.element.BigSwitchVnsElementService;
import com.cloud.utils.exception.CloudRuntimeException; import com.cloud.utils.exception.CloudRuntimeException;
@APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices") @APICommand(name = "listBigSwitchVnsDevices", responseObject=BigSwitchVnsDeviceResponse.class, description="Lists BigSwitch Vns devices", since = "4.1.0")
public class ListBigSwitchVnsDevicesCmd extends BaseListCmd { public class ListBigSwitchVnsDevicesCmd extends BaseListCmd {
public static final Logger s_logger = Logger.getLogger(ListBigSwitchVnsDevicesCmd.class.getName()); public static final Logger s_logger = Logger.getLogger(ListBigSwitchVnsDevicesCmd.class.getName());
private static final String s_name = "listbigswitchvnsdeviceresponse"; private static final String s_name = "listbigswitchvnsdeviceresponse";

View File

@ -88,7 +88,9 @@ import com.cloud.vm.NicProfile;
import com.cloud.vm.ReservationContext; import com.cloud.vm.ReservationContext;
import com.cloud.vm.VirtualMachine; import com.cloud.vm.VirtualMachine;
import com.cloud.vm.VirtualMachineProfile; import com.cloud.vm.VirtualMachineProfile;
import org.springframework.stereotype.Component;
@Component
@Local(value = {NetworkElement.class, ConnectivityProvider.class}) @Local(value = {NetworkElement.class, ConnectivityProvider.class})
public class BigSwitchVnsElement extends AdapterBase implements public class BigSwitchVnsElement extends AdapterBase implements
BigSwitchVnsElementService, ConnectivityProvider, ResourceStateAdapter { BigSwitchVnsElementService, ConnectivityProvider, ResourceStateAdapter {