Package org.apache.tapestry5

# Interface Binding2

All Superinterfaces:
  `AnnotationProvider`, `Binding`

All Known Subinterfaces:
  `InternalPropBinding`

All Known Implementing Classes:
  `AbstractBinding`, `AssetBinding`, `AttributeExpansionBinding`, `BlockBinding`, `ComponentBinding`, `InvariantBinding`, `LiteralBinding`, `PropBinding`, `RenderVariableBinding`

public interface Binding2 extends Binding
Extension to `Binding` that adds a method to access the generic property type. `BindingFactory` instances should ideally return Binding2 objects, not Binding. This is only primarily of interest to `ComponentResources`.

Since:
  5.4

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Type`
  `getBindingGenericType()`
  Returns the generic type of the binding

  ### Methods inherited from interface org.apache.tapestry5.commons.AnnotationProvider

  `getAnnotation`

  ### Methods inherited from interface org.apache.tapestry5.Binding

  `get, getBindingType, isInvariant, set`

- ## Method Details

  - ### getBindingGenericType

    Type getBindingGenericType()
    Returns the generic type of the binding
    See Also:
      - `Method.getGenericReturnType()`
      - `Field.getGenericType()`