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

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

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

      `get, getBindingType, isInvariant, set`

    - ### Methods inherited from interface org.apache.tapestry5.ioc.AnnotationProvider

      `getAnnotation`

- - ### Method Detail

    - #### getBindingGenericType

          Type getBindingGenericType()

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

${project.version} - Copyright © 2003-2014 The Apache Software Foundation.