@Target(value=TYPE) @Retention(value=CLASS) public @interface ChronicleFeature
@ChronicleFeature indicates a compile-time switch recognised by
Chronicle libraries. It is aimed at library maintainers configuring optional
behaviour.
The int value represents a feature id or bit mask defined by
Chronicle components.
Retention and effect: Retained in the class file and discarded by the Java runtime. It has no runtime effect unless Chronicle tooling recognises the value.
@ChronicleFeature(1)
public interface CustomFeature { }
if (ChronicleFeatures.FEATURE_X.isPresent()) {
// feature specific logic
}
This annotation is not inherited and must be repeated on subclasses if required.
TargetMajorVersion| Modifier and Type | Required Element and Description |
|---|---|
int |
value |
Copyright © 2026 Chronicle Software Ltd. All rights reserved.