Fixed @Implementation for the api commands - responseObject field should be the instance of BaseResponse

Conflicts:

	api/src/com/cloud/api/commands/UpdateStorageNetworkIpRangeCmd.java
This commit is contained in:
Alena Prokharchyk 2012-06-26 16:22:39 -07:00
parent 42dac79e08
commit fcdf6f2bec
2 changed files with 5 additions and 2 deletions

View File

@ -22,10 +22,12 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.cloud.api.response.BaseResponse;
@Retention(RetentionPolicy.RUNTIME)
@Target({ TYPE })
public @interface Implementation {
Class<?> responseObject();
Class<? extends BaseResponse> responseObject();
String description() default "";

View File

@ -34,7 +34,7 @@ import com.cloud.exception.ResourceAllocationException;
import com.cloud.exception.ResourceUnavailableException;
import com.cloud.user.Account;
@Implementation(description="Update a Storage network IP range, only allowed when no IPs in this range have been allocated.", responseObject=UpdateStorageNetworkIpRangeCmd.class, since="3.0.0")
@Implementation(description="Update a Storage network IP range, only allowed when no IPs in this range have been allocated.", responseObject=StorageNetworkIpRangeResponse.class, since="3.0.0")
public class UpdateStorageNetworkIpRangeCmd extends BaseAsyncCmd {
public static final Logger s_logger = Logger.getLogger(UpdateStorageNetworkIpRangeCmd.class);
private static final String s_name = "updatestoragenetworkiprangeresponse";
@ -117,3 +117,4 @@ public class UpdateStorageNetworkIpRangeCmd extends BaseAsyncCmd {
}
}