use of org.apache.meecrowave.tomcat.NoDescriptorRegistry in project meecrowave by apache.
the class Meecrowave method setupJmx.
private void setupJmx(final boolean skip) {
try {
final Field registry = Registry.class.getDeclaredField("registry");
registry.setAccessible(true);
registry.set(null, skip ? new NoDescriptorRegistry() : new Registry());
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
Aggregations