@openapi-generator-plus/java-cxf-cdi-server-generator
Version:
An OpenAPI Generator Plus template for a Java API server using CXF and CDI
15 lines (13 loc) • 510 B
text/typescript
import { ts } from '@openapi-generator-plus/template-utils'
/** The CDI `beans.xml` descriptor enabling annotation-based bean discovery. */
export function beansXml(): string {
return ts`
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
version="1.1" bean-discovery-mode="annotated">
</beans>
`
}