Package com.palantir.ptoss.cinch.core
Annotation Type NotBindable
-
@Retention(RUNTIME) @Target(FIELD) public @interface NotBindable
Marks the annotated field as not bindable. In Cinch, all bindable fields are required to be markedfinal
. In fact, if aBindableModel
has a field that is not markedfinal
, a runtime error will during the call toBindings.bind(Object)
. To allowBindableModel
s to have non-final fields, mark those fields with this annotation.It can be thought of as similar to
SuppressWarnings
as a way to force the coder to explicitly specify intention when doing something dangerous.