Class MockLayerAdapterFactory

  • All Implemented Interfaces:
    org.apache.sling.api.adapter.AdapterFactory

    @ProviderType
    public final class MockLayerAdapterFactory
    extends Object
    implements org.apache.sling.api.adapter.AdapterFactory
    Tries to adapt to an InputStream to get a Layer instance for an image binary.
    • Constructor Detail

      • MockLayerAdapterFactory

        public MockLayerAdapterFactory()
    • Method Detail

      • getAdapter

        @Nullable
        public <AdapterType> AdapterType getAdapter​(@NotNull
                                                    @NotNull Object object,
                                                    @NotNull
                                                    @NotNull Class<AdapterType> type)
        Specified by:
        getAdapter in interface org.apache.sling.api.adapter.AdapterFactory