@Test public void test_withCodec() { assertThat( () -> DiagnosticRequestHandler.withCodec(null), is(throwing(instanceOf(NullPointerException.class)))); }
static DiagnosticRequestHandler withCodec(DiagnosticCodec<?> codec) { try { return new DiagnosticRequestHandler(codec); } catch (NotCompliantMBeanException e) { throw new IllegalStateException(e); } }
DiagnosticRequestHandler extends StandardMBean implements DiagnosticRequestHandlerMBean { static DiagnosticRequestHandler withCodec(DiagnosticCodec<?> codec) { try { return new DiagnosticRequestHandler(codec); } catch (NotCompliantMBeanException e) { throw new IllegalStateException(e); } } }
DiagnosticRequestHandler extends StandardMBean implements DiagnosticRequestHandlerMBean { static DiagnosticRequestHandler withCodec(DiagnosticCodec<?> codec) { try { return new DiagnosticRequestHandler(codec); } catch (NotCompliantMBeanException e) { throw new IllegalStateException(e); } } private  DiagnosticRequestHandler(DiagnosticCodec<?> codec); }
DiagnosticRequestHandler extends StandardMBean implements DiagnosticRequestHandlerMBean { static DiagnosticRequestHandler withCodec(DiagnosticCodec<?> codec) { try { return new DiagnosticRequestHandler(codec); } catch (NotCompliantMBeanException e) { throw new IllegalStateException(e); } } private  DiagnosticRequestHandler(DiagnosticCodec<?> codec); DiagnosticCodec<String> getCodec(); Collection<DiagnosticServiceDescriptor<?>> getServices(); @Override boolean hasServiceInterface(String serviceName); @SuppressWarnings("unchecked") @Override String request(String payload); }
DiagnosticRequestHandler extends StandardMBean implements DiagnosticRequestHandlerMBean { static DiagnosticRequestHandler withCodec(DiagnosticCodec<?> codec) { try { return new DiagnosticRequestHandler(codec); } catch (NotCompliantMBeanException e) { throw new IllegalStateException(e); } } private  DiagnosticRequestHandler(DiagnosticCodec<?> codec); DiagnosticCodec<String> getCodec(); Collection<DiagnosticServiceDescriptor<?>> getServices(); @Override boolean hasServiceInterface(String serviceName); @SuppressWarnings("unchecked") @Override String request(String payload);  }