Search in sources :

Example 1 with DummySimpleService

use of services.DummySimpleService in project btrace by btraceio.

the class ServicesTest method testSingletonService.

@OnMethod(clazz = "resources.OnMethodTest", method = "args$static")
public static void testSingletonService(String a, long b, String[] c, int[] d) {
    DummySimpleService ds = Service.simple("getInstance", DummySimpleService.class);
    ds.doit("hello", 10);
}
Also used : DummySimpleService(services.DummySimpleService) OnMethod(com.sun.btrace.annotations.OnMethod)

Example 2 with DummySimpleService

use of services.DummySimpleService in project btrace by btraceio.

the class ServicesTest method testSimpleService.

@OnMethod(clazz = "resources.OnMethodTest", method = "noargs")
public static void testSimpleService() {
    DummySimpleService ds = Service.simple(DummySimpleService.class);
    ds.doit("hello", 10);
}
Also used : DummySimpleService(services.DummySimpleService) OnMethod(com.sun.btrace.annotations.OnMethod)

Aggregations

OnMethod (com.sun.btrace.annotations.OnMethod)2 DummySimpleService (services.DummySimpleService)2