Annotation Type Via


  • @Target({FIELD,METHOD,PARAMETER})
    @Retention(RUNTIME)
    public @interface Via
    Indicate that this injection point should be handled using some value derived from the adaptable.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends ViaProviderType> type
      The specific ViaProvider which will handle retrieval of the adaptable.
      java.lang.String value
      A string value which the via provider uses to determine the correct adaptable.
    • Element Detail

      • value

        java.lang.String value
        A string value which the via provider uses to determine the correct adaptable.
        Default:
        ""
      • type

        java.lang.Class<? extends ViaProviderType> type
        The specific ViaProvider which will handle retrieval of the adaptable.
        Default:
        org.apache.sling.models.annotations.via.BeanProperty.class