Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Allow specifying "sub-package" within which the generated builder class will reside #4

@rothshahar

Description

@rothshahar

Since all the builder classes that CallBuilder generates are currently dropped into the same namespace, there's a chance that class names will conflict.
To work around that, one can use a longer class name (perhaps prefixed with the name of the method that will be called). This could result, though, in very long class names.

Can you please enhance CallBuilder so that we can specify a sub-package in which the generated builder class will reside?

e.g.

package foo.bar;
class Baz {
    CallBuilder(className="builder.GenerateQuxBuilder")
    public static Qux generateQux();
}

will create foo.bar.builder.GenerateQuxBuilder.
This can then be imported as GenerateQuxBuilder with no risk of conflicts.

Alternatively, you can add an attribute to the annotation to specify the package name separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions