Skip to content

Any member of an @VertxGen interface should be ignorable #147

Closed
@chrisjleu

Description

@chrisjleu

A nested interface will cause the following compilation error:

io.vertx.codegen.GenException: Can only have one interface per file

I would like to be able to avoid this by doing something like the following:

@ProxyGen
@VertxGen
public interface MyService {

    void serviceMethodOne(String data, Handler<AsyncResult<Void>> resultHandler);

    void serviceMethodTwo(String data, Handler<AsyncResult<Void>> resultHandler);

    @GenIgnore
    @ProxyIgnore
    @FunctionalInterface
    interface MyNestedInterface {
        void anotherMethod(Integer data, Handler<AsyncResult<Void>> resultHandler);
    }

}

Is that feasible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions