Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add annotation for merging method name and class name in action name #1

Closed
programmerr47 opened this issue Apr 2, 2017 · 2 comments
Assignees

Comments

@programmerr47
Copy link
Owner

We need to add annotation that will allow to combine interface name and method name to one action name. For example:

interface Sample {
    @DesiredAnnotation fun action()
}

will give category = sample and action = sampleaction

Also, need to think about splitters. For example, to generate action = sample-action or action = sample_action

Suggested names for annotation are: @short, @Prefix, @WithPrefix, @HasPrefix
Suggested parameters:
name - specify prefix name (default is name of class in lower case)
splitter - specify splitter string (default is nothing)

Suggested behavior:

  • can be used on interface and method
  • class annotation gives behavior to all methods of this interface
  • if we have annotation on interface and same annotation on method, then method annotation wins
@programmerr47
Copy link
Owner Author

Need to add doc for new annotation @HasPrefix

@programmerr47 programmerr47 self-assigned this Apr 3, 2017
@programmerr47
Copy link
Owner Author

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant