jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] add remaining features to support the abstraction (#345)
Date Wed, 18 Jan 2017 22:24:43 GMT
andreaturli commented on this pull request.



> +            @ConstructorProperties({ "devices", "meta" })
+            public Devices(List<Device> items, Meta meta) {
+                super(items, meta);
+            }
+        }
+
+        private static class ToPagedIterable extends BaseToPagedIterable<Device, ListOptions>
{
+
+            @Inject ToPagedIterable(PacketApi api, Function<Href, ListOptions> linkToOptions)
{
+                super(api, linkToOptions);
+            }
+
+           @Override
+           protected List<Object> getArgs(GeneratedHttpRequest request) {
+              return request.getCaller().get().getArgs();
+           }

because deviceapi is the the only that requires an arg `@Path("/projects/{projectId}/devices")`
without override arg0 is null

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/345
Mime
View raw message