@Target(value=TYPE) @Retention(value=CLASS) @Documented public @interface ValidIdRange
message id
. Both Message.INHERIT
and Message.NONE
are ignored when validating.
@MessageLogger(projectCode = "EXAMPLE")
@ValidIdRange(min = 100, max = 200)
public interface ExampleLogger {
@LogMessage
@Message(id = 100, value = "Example message")
void example();
}
Modifier and Type | Optional Element and Description |
---|---|
int |
max
The maximum id allowed in the
message id . |
int |
min
The minimum id allowed in the
message id . |
public abstract int min
message id
. Both Message.INHERIT
and Message.NONE
are ignored when validating.public abstract int max
message id
. Both Message.INHERIT
and Message.NONE
are ignored when validating.Copyright © 2015 JBoss, a division of Red Hat, Inc.. All Rights Reserved.