catalog: add getVersionedPluginCatalog overload accepting a planNames… by jutur · Pull Request #39 · killbill/killbill-plugin-api · GitHub
Skip to content

catalog: add getVersionedPluginCatalog overload accepting a planNames…#39

Open
jutur wants to merge 1 commit into
killbill:masterfrom
jutur:catalog-plugin-shallow-fetch
Open

catalog: add getVersionedPluginCatalog overload accepting a planNames…#39
jutur wants to merge 1 commit into
killbill:masterfrom
jutur:catalog-plugin-shallow-fetch

Conversation

@jutur

@jutur jutur commented Jun 17, 2026

Copy link
Copy Markdown

Adds a default method that accepts a Set planNames alongside the existing properties and context parameters. Kill Bill core already knows which plans are needed during invoice generation (from the billing event set) and can pass them here so that catalog plugins managing large catalogs can return a shallow subset rather than the full catalog, reducing serialization and processing overhead.

The default implementation delegates to the existing full-catalog method, so existing plugin implementations require no changes.

Fixes killbill/killbill#2258

… hint

Adds a default method that accepts a Set<String> planNames alongside the
existing properties and context parameters. Kill Bill core already knows
which plans are needed during invoice generation (from the billing event
set) and can pass them here so that catalog plugins managing large
catalogs can return a shallow subset rather than the full catalog,
reducing serialization and processing overhead.

The default implementation delegates to the existing full-catalog method,
so existing plugin implementations require no changes.

Fixes killbill/killbill#2258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance catalog plugin API to fetch shallow catalog

1 participant