Class AbstractBinding

    • Method Detail

      • set

        public void set​(java.lang.Object value)
        Description copied from interface: Binding
        Updates the current value. Most types of bindings are read-only, and this method will throw a runtime exception. It is the caller's responsibility to ensure that the value passed in is of the appropriate type.
        Specified by:
        set in interface Binding
        TapestryException - always
      • isInvariant

        public boolean isInvariant()
        Returns true. Subclasses that do not supply a fixed, read-only value should override this method to return false.
        Specified by:
        isInvariant in interface Binding
      • getBindingType

        public java.lang.Class getBindingType()
        Returns the actual class, by invoking Binding.get(). Subclasses may override this method to work more efficiently (say, when the binding type is known statically).
        Specified by:
        getBindingType in interface Binding
      • getBindingGenericType

        public java.lang.reflect.Type getBindingGenericType()
        Passes straight through to getBindingType(). Subclasses may override this method to return the generic type if it is available
        Specified by:
        getBindingGenericType in interface Binding2
        See Also:
        Method.getGenericReturnType(), Field.getGenericType()
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annotationClass)
        Always returns null. Bindings that provide access to a method or field will override this method to return the appropriate annotation.
        Specified by:
        getAnnotation in interface AnnotationProvider
        annotationClass - used to select the annotation to return
        the annotation, or null if not found