Top Description Methods
io.vertx.codegen.annotations

public @Interface ModuleGen

extends Annotation
Annotations
@Retention:RUNTIME
@Target:PACKAGE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Declares a Codegen module, all the processed elements contained in the annotated package or one of its child package will be part of the same module. The identity of the module plays an important role as it can be used by a runtime to load a module.

The 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:

For this particular `com.acme.myservice` module we have:

Author
Julien Viet

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the module group package
groupPackage
()

public String

Returns:

the module name
name
()

public boolean

Returns:

true when asynchronous operations are declared by Future<T> returning signatures, false when they are declared by Handler<AsyncResult<T>> callback signatures
useFutures
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupPackageback to summary
public String groupPackage()
Returns:String

the module group package

nameback to summary
public String name()
Returns:String

the module name

useFuturesback to summary
public boolean useFutures()
Returns:boolean

true when asynchronous operations are declared by Future<T> returning signatures, false when they are declared by Handler<AsyncResult<T>> callback signatures