Package net.anotheria.moskito.core.dynamic

Examples of net.anotheria.moskito.core.dynamic.MoskitoInvokationProxy


  }

  @Test
  public void testWithMonitoringViaInvocationProxy() throws Exception{
    SimpleService unmonitoredInstance = new SimpleServiceImpl();
    MoskitoInvokationProxy proxy = new MoskitoInvokationProxy(
        unmonitoredInstance,
        new ServiceStatsCallHandler(),
        new ServiceStatsFactory(),
        "SimpleService",
        "service",
        "test-sub-system",
        SimpleService.class
        );
    SimpleService monitoredInstance = (SimpleService)proxy.createProxy();

    for (int i=0; i<10; i++){
      monitoredInstance.doSomethingMethod();
    }
View Full Code Here

TOP

Related Classes of net.anotheria.moskito.core.dynamic.MoskitoInvokationProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.