> + bind(new TypeLiteral<Function<ServerInfo, JsonObject>>() {
> + }).to(ServerInfoToJson.class);
> + bind(new TypeLiteral<Function<Tag, JsonObject>>() {
> + }).to(TagToJson.class);
> + bind(new TypeLiteral<Function<ProfileInfo, JsonObject>>() {
> + }).to(ProfileInfoToJson.class);
> + bind(new TypeLiteral<Function<LibraryDrive, JsonObject>>() {
> + }).to(LibraryDriveToJson.class);
> + bind(new TypeLiteral<Function<FirewallPolicy, JsonObject>>() {
> + }).to(FirewallPolicyToJson.class);
> + bind(new TypeLiteral<Function<IPInfo, JsonObject>>() {
> + }).to(IPInfoToJson.class);
> + bind(new TypeLiteral<Function<VLANInfo, JsonObject>>() {
> + }).to(VLANInfoToJson.class);
> + bind(new TypeLiteral<Function<CreateSubscriptionRequest,
> JsonObject>>() {
> + }).to(CreateSubscriptionRequestToJson.class);
Are this explicit bindings needed? If there is only one implementation of each
function of each type I think you could just remove this bindings.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/12/files#r5278744