A domain-specific language (DSL) is designed to express operations within a particular problem domain. In Quarkus applications, DSLs provide Java APIs that resemble the target language while keeping execution inside the application. section 4.5.4 section 11.4
The examples use DSLs for two different integration tasks:
- Construct GraphQL documents through chained Java method calls instead of writing raw GraphQL directly. section 4.5.4
- Access Kubernetes or OpenShift APIs through injected Fabric8 clients and fluent calls such as namespace and field filters. section 11.4
Building a GraphQL query
A dynamic client can build a cars query by composing an operation and fields into a Document. The client executes that document and exposes response data as JSON or deserialized domain objects.
Listing running OpenShift pods
An injected OpenShiftClient expresses a pod lookup as a fluent chain: select a namespace, filter status.phase to Running, list the resources, and return the items.









