public class ConfigAsset extends Object implements org.jboss.shrinkwrap.api.asset.Asset
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 and Description |
---|
ConfigAsset() |
Modifier and Type | Method and Description |
---|---|
InputStream |
openStream() |
ConfigAsset |
put(String key,
String... values) |
public ConfigAsset put(String key, String... values)
public InputStream openStream()
openStream
in interface org.jboss.shrinkwrap.api.asset.Asset
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.