@Target(value=TYPE) @Retention(value=CLASS) @Documented public @interface ValidIdRange
message id. Both Message.INHERIT and Message.NONE are ignored when validating.
Note: Message id's from inherited interfaces are not validated within the range provided. Super interfaces
would need their own annotation for range validation.
@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 © 2017 JBoss by Red Hat. All rights reserved.