use of com.sun.enterprise.config.serverbeans.JavaConfig in project Payara by payara.
the class JavaConfigSubTypesTest method doTest.
@Test
public void doTest() throws TransactionFailure {
JavaConfig javaConfig = habitat.getService(JavaConfig.class);
ConfigSupport.apply(new SingleConfigCode<JavaConfig>() {
public Object run(JavaConfig param) throws PropertyVetoException, TransactionFailure {
List<String> jvmOptions = param.getJvmOptions();
jvmOptions.add("-XFooBar=true");
return jvmOptions;
}
}, javaConfig);
}
Aggregations