Interface WebPartFactory

All Superinterfaces:
Part.Factory

public interface WebPartFactory extends Part.Factory

A part factory supporting payload encoding.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Details

    • encoded

      <T> WebPart<T> encoded(Consumer<WebPart<T>> partConfigurer)

      Creates an encoded part.

      Type Parameters:
      T - the payload type
      Parameters:
      partConfigurer - an encoded part configurer
      Returns:
      an encoded Web part
    • encoded

      <T> WebPart<T> encoded(Consumer<WebPart<T>> partConfigurer, Class<T> type)

      Creates an encoded part.

      Type Parameters:
      T - the payload type
      Parameters:
      partConfigurer - an encoded part configurer
      type - the payload type
      Returns:
      an encoded Web part
    • encoded

      <T> WebPart<T> encoded(Consumer<WebPart<T>> partConfigurer, Type type)

      Creates an encoded part.

      Type Parameters:
      T - the payload type
      Parameters:
      partConfigurer - an encoded part configurer
      type - the payload type
      Returns:
      an encoded Web part