// Path: comments-api/src/main/java/worldwonders/comments/api/CommentsService.java
// public interface CommentsService extends Service {
//     ServiceCall<NotUsed, NotUsed, List<Comment>> findAll();
// 
//     ServiceCall<String, NotUsed, List<Comment>> findForTopic();
// 
//     ServiceCall<NotUsed, Comment, NotUsed> postComment();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("comments-service").with(
//                 restCall(Method.GET, "/comments", findAll()),
//                 restCall(Method.GET, "/comments/:topic", findForTopic()),
//                 restCall(Method.POST, "/comment", postComment())
//         ).withAutoAcl(true)
//         .replaceAllMessageSerializers(DslJsonLagomSerialization.optimizeSerializersFor(CommentsService.class));
//     }
// }
// 
// Path: wonders-api/src/main/java/worldwonders/wonders/api/WondersService.java
// public interface WondersService extends Service {
//     ServiceCall<NotUsed, NotUsed, List<Wonder>> findAll();
// 
//     ServiceCall<NotUsed, NotUsed, List<String>> getWonderTypes();
// 
//     ServiceCall<NotUsed, Wonder, NotUsed> makeWonder();
// 
//     ServiceCall<NotUsed, NewComment, NotUsed> newComment();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("wonders-service").with(
//                 restCall(Method.GET, "/wonders", findAll()),
//                 restCall(Method.GET, "/wonderTypes", getWonderTypes()),
//                 restCall(Method.POST, "/wonder", makeWonder()),
//                 restCall(Method.POST, "/new-comment", newComment())
//         ).withAutoAcl(true)
//         .replaceAllMessageSerializers(DslJsonLagomSerialization.optimizeSerializersFor(WondersService.class));
//     }
// }


import com.google.inject.AbstractModule;
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport;
import worldwonders.comments.api.CommentsService;
import worldwonders.wonders.api.WondersService;
package worldwonders.comments.impl;



public class CommentsServiceModule extends AbstractModule implements ServiceGuiceSupport {
    @Override
    protected void configure() {
// Path: comments-api/src/main/java/worldwonders/comments/api/CommentsService.java
// public interface CommentsService extends Service {
//     ServiceCall<NotUsed, NotUsed, List<Comment>> findAll();
// 
//     ServiceCall<String, NotUsed, List<Comment>> findForTopic();
// 
//     ServiceCall<NotUsed, Comment, NotUsed> postComment();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("comments-service").with(
//                 restCall(Method.GET, "/comments", findAll()),
//                 restCall(Method.GET, "/comments/:topic", findForTopic()),
//                 restCall(Method.POST, "/comment", postComment())
//         ).withAutoAcl(true)
//         .replaceAllMessageSerializers(DslJsonLagomSerialization.optimizeSerializersFor(CommentsService.class));
//     }
// }
// 
// Path: wonders-api/src/main/java/worldwonders/wonders/api/WondersService.java
// public interface WondersService extends Service {
//     ServiceCall<NotUsed, NotUsed, List<Wonder>> findAll();
// 
//     ServiceCall<NotUsed, NotUsed, List<String>> getWonderTypes();
// 
//     ServiceCall<NotUsed, Wonder, NotUsed> makeWonder();
// 
//     ServiceCall<NotUsed, NewComment, NotUsed> newComment();
// 
//     @Override
//     default Descriptor descriptor() {
//         return named("wonders-service").with(
//                 restCall(Method.GET, "/wonders", findAll()),
//                 restCall(Method.GET, "/wonderTypes", getWonderTypes()),
//                 restCall(Method.POST, "/wonder", makeWonder()),
//                 restCall(Method.POST, "/new-comment", newComment())
//         ).withAutoAcl(true)
//         .replaceAllMessageSerializers(DslJsonLagomSerialization.optimizeSerializersFor(WondersService.class));
//     }
// }


// Path: comments-impl/src/main/java/worldwonders/comments/impl/CommentsServiceModule.java
import com.google.inject.AbstractModule;
import com.lightbend.lagom.javadsl.server.ServiceGuiceSupport;
import worldwonders.comments.api.CommentsService;
import worldwonders.wonders.api.WondersService;

package worldwonders.comments.impl;



public class CommentsServiceModule extends AbstractModule implements ServiceGuiceSupport {
    @Override
    protected void configure() {
        bindClient(WondersService.class);