vlsi commented on issue #5895: URL: https://github.com/apache/jmeter/issues/5895#issuecomment-1538429497
Here's the alternative for `TestBean` (== client code `implements TestBean` so JMeter spawns UI via `TestBeanGUI`): ```diff @@ -52,6 +56,13 @@ public class BSFSampler extends BSFTestElement implements Sampler, TestBean, Con private static final Logger log = LoggerFactory.getLogger(BSFSampler.class); + @AutoService(JMeterGUIComponentMetadata.class) + public static class Metadata extends TestBeanGUIComponentMetadata { + public Metadata() { + super(BSFSampler.class); + } + } + public BSFSampler() { super(); } ``` `TestBeanGUIComponentMetadata` will be JMeter-provided class like ```java public class TestBeanGUIComponentMetadata implements JMeterGUIComponentMetadata { private final Class<? extends TestBean> clazz; public TestBeanGUIComponentMetadata(Class<? extends TestBean> clazz) { this.clazz = clazz; } @Override public final Class<? extends JMeterGUIComponent> getImplementationClass() { return TestBeanGUI.class; } ... ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org