I want to enable assertion in testing application server, but AS host deployments from another teams and my decision can conflict with them...
Quick web search show that assertion for Jboss can be enabled as global option:
so setting become in effect to all deployments.
Is it possible to enable assertion partially? Based on class loader (applicable for deployments in application servers) or package/class name patterns? Or other?
My question not about JBoss but in general for JVM...
From the doc:
To enable assertions at various granularities, use the -enableassertions, or -ea, switch. To disable assertions at various granularities, use the -disableassertions, or -da, switch. You specify the granularity with the arguments that you provide to the switch:
Note that page contains examples directly following the above quote.
I don't think that you can make these changes per-classloader (as you ask above). Note however that you can programatically set the default assertion status per classloader. Note sure that helps you in this situation.