Class ConfigAsset
java.lang.Object
org.eclipse.microprofile.openapi.tck.utils.ConfigAsset
- All Implemented Interfaces:
org.jboss.shrinkwrap.api.asset.Asset
Utility to allow the contents of microprofile-config.properties to be defined within the deployment method
Example usage:
ConfigAsset config = new ConfigAsset()
.put(OASConfig.SCAN_PACKAGES, "com.example.myPackage")
.put(OASConfig.SCAN_EXCLUDE_CLASSES, "com.example.myPackage.MyClass");
WebArchive war = ShrinkWrap.create(WebArchive.class, "test.war")
.addPackages(true, "com.example.myPackage")
.addAsManifestResource(config, "microprofile-config.properties");
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ConfigAsset
public ConfigAsset()
-
-
Method Details
-
put
-
openStream
- Specified by:
openStreamin interfaceorg.jboss.shrinkwrap.api.asset.Asset
-