Class WebExtension.Builder<B extends WebExtension.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
WebExtension

public static class WebExtension.Builder<B extends WebExtension.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.52
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public WebExtension build()
      Finish building the WebExtension object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to WebExtension.
      Overrides:
      build in class GObject.Builder<B extends WebExtension.Builder<B>>
      Returns:
      a new instance of WebExtension with the properties that were set in the Builder object.
    • setPath

      public B setPath(String path)
      A string pointing to the folder containing the extension manifest and resources. See webkit_web_extension_get_path() for more details.
      Parameters:
      path - the value for the path property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.52