Class ChildResourceViaProvider

java.lang.Object
org.apache.sling.models.impl.via.ChildResourceViaProvider
All Implemented Interfaces:
ViaProvider

public class ChildResourceViaProvider extends Object implements ViaProvider
  • Constructor Details

    • ChildResourceViaProvider

      public ChildResourceViaProvider()
  • Method Details

    • getType

      public Class<? extends ViaProviderType> getType()
      Description copied from interface: ViaProvider
      Return the marker class for use in the @Via annotation
      Specified by:
      getType in interface ViaProvider
      Returns:
      the marker class
    • getAdaptable

      public Object getAdaptable(Object original, String value)
      Description copied from interface: ViaProvider
      Get an adaptable using the value of the @Via annotation.
      Specified by:
      getAdaptable in interface ViaProvider
      Parameters:
      original - the original adaptable
      value - the value of the @Via annotation
      Returns:
      the projected adaptable