Annotation Type CommandContainer
Indicates that the class contains
command metods.
If using cloud-annotations as an annotation processor, then the class will
be listed in a special file under META-INF. These containers can be collectively
parsed using AnnotationParser.parseContainers(), which will create instances
of the containers and then call AnnotationParser.parse(Object[]) with the created instance.
Every class annotated with CommandContainer needs to be public, and it
also needs to have one of the following:
- A
publicno-arg constructor - A
publicconstructor withAnnotationParseras the sole parameter
NOTE: For container parsing to work, you need to make sure that cloud-annotations is added as an annotation processor.
-
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
ANNOTATION_PATH
- See Also:
-
-
Element Details
-
priority
int priorityReturns the priority of the container.A container with a higher priority will get parsed earlier than a container with a lower priority.
- Returns:
- the priority
- Default:
1
-