Class AbstractResourceTypeViaProvider

    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • AbstractResourceTypeViaProvider

        public AbstractResourceTypeViaProvider()
    • Method Detail

      • getAdaptable

        public Object getAdaptable​(Object original,
                                   String value)
        Specified by:
        getAdaptable in interface org.apache.sling.models.spi.ViaProvider
      • handle

        protected abstract boolean handle​(@NotNull
                                          @NotNull String value)
      • getResourceType

        @Nullable
        protected abstract @Nullable String getResourceType​(@NotNull
                                                            @NotNull org.apache.sling.api.resource.Resource resource,
                                                            @NotNull
                                                            @NotNull String value)