@Retention(value=RUNTIME) @Target(value=PACKAGE) public @interface ModuleGen
name()
declares the name of the module: a non hierarchical name. Such name is used by
the JavaScript or Ruby language to generate modules for their runtime. The Java or Groovy runtime do
not use this info.
The groupPackage()
declares the group name of the module: the package of the group used
for generating the generated package names (for Groovy or RxJava generation).
@ModuleGen(name = "acme", groupPackage="com.acme")
package com.acme.myservice;
The group package must be a prefix of the annotated module package, it defines the naming of the generate
packages for the modules that belongs to the same group, in this case:
com.acme.groovy...
for Groovy APIcom.acme.rxjava...
for RxJava APIcom.acme.groovy.myservice
for Groovy APIcom.acme.rxjava.myservice
for RxJava APIModifier and Type | Required Element and Description |
---|---|
String |
groupPackage |
String |
name |
Copyright © 2017. All rights reserved.