diff --git a/README.md b/README.md index 83b8a8a..daa7d65 100644 --- a/README.md +++ b/README.md @@ -240,7 +240,23 @@ public class PdfExporterAdminUiServlet extends GenericUiServlet { public PdfExporterAdminUiServlet() { super("pdf-exporter-admin"); - CurrentExtensionConfiguration.getInstance().setExtensionConfiguration(PdfExporterExtensionConfiguration.getInstance()); } } ``` + +### Custom extension configuration + +In order to register additional configuration properties a subclass of `ExtensionConfiguration` must be marked with the `@Discoverable`: + +```java +@Discoverable +public class PdfExporterExtensionConfiguration extends ExtensionConfiguration { + @Override + public @NotNull List getSupportedProperties() { + List supportedProperties = new ArrayList<>(super.getSupportedProperties()); + supportedProperties.add("additionalProperty"); + return supportedProperties; + } + ... +} +```