Skip to content

Commit

Permalink
#54 - Remove a reference to generated classes
Browse files Browse the repository at this point in the history
As the classes are generated at compile time when compiling with Maven, IDEs cannot find them.
  • Loading branch information
cescoffier committed Jun 21, 2015
1 parent f41e5e6 commit 4f8cd95
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.examples.service.impl.ProcessorServiceImpl;
import io.vertx.serviceproxy.ProxyHelper;

/**
* The service interface.
Expand All @@ -21,9 +22,11 @@ static ProcessorService create(Vertx vertx) {
}

static ProcessorService createProxy(Vertx vertx, String address) {
return ProxyHelper.createProxy(ProcessorService.class, vertx, address);
// Alternatively, you can create the proxy directly using:
// return new ProcessorServiceVertxEBProxy(vertx, address);
// The name of the class to instantiate is the service interface + `VertxEBProxy`.
// This class is generated during the compilation
return new ProcessorServiceVertxEBProxy(vertx, address);
}

// The service methods
Expand Down

0 comments on commit 4f8cd95

Please sign in to comment.