@Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface SbeAutoRecognize
This annotation allows to automatically recognize correspondence between the class or methods and SBE types and/or fields, and detect purpose of such methods.
When this annotation is applied, other SBE annotations can be skipped if the following rules are followed (FieldName
is name of the composite field by the SBE template):
void set{FieldName}(T value)
is a setter for the 'FieldName' field. The T type must be compatible with the SBE type.T get{FieldName}()
is a getter for the 'FieldName' field. The T type must be compatible with the SBE type.boolean has{FieldName}()
is a null-checker for the 'FieldName' field.void setNull{FieldName}()
is a null-setter for the 'FieldName' field.Also, the SbeNotUsed
annotation prevents applying of auto-recognition for the given method.
Copyright © 2005–2025 Onix Solutions. All rights reserved.