Skip to content

Configuration

var config = new PlugwerkConfig.Builder(
"https://myplugwerk.host",
"acme-corp"
)
.apiKey("pwk_...")
.build();

The SDK provides these PF4J extension points:

Extension PointPurpose
PlugwerkCatalogSearch and browse plugins
PlugwerkInstallerDownload, verify, and install plugins
PlugwerkUpdateCheckerCheck for available updates
PlugwerkMarketplaceFacade combining all three

Access the SDK through the PlugwerkMarketplace facade:

var marketplace = pluginManager
.getExtensions(PlugwerkMarketplace.class)
.getFirst();
// Browse catalog
var plugins = marketplace.catalog().listPlugins();
// Search
var results = marketplace.catalog()
.searchPlugins(new SearchCriteria("crm", null, null));
// Install
var result = marketplace.installer()
.install("com.acme.crm-connector", "3.0.0");
// Check for updates
var installed = Map.of("com.acme.crm-connector", "2.0.0");
var updates = marketplace.updateChecker()
.checkForUpdates(installed);