Spring Framework JamonPerformanceMonitorInterceptor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework JamonPerformanceMonitorInterceptor class.

This code example shows how to use the following methods:
        mockMgr.expects(once()).method("getUserRoles").will(returnValue(roles)); 
 
        ProxyFactory factory = new ProxyFactory(); 
        factory.setInterfaces(new Class[] { IAdmin.class }); 
        factory.setTarget(adminImpl()); 
        factory.addAdvice(new JamonPerformanceMonitorInterceptor()); 
        IAdmin proxy = (IAdmin) factory.getProxy(); 
        try { 
            msec.checkMethod(factory.getProxy(), ec, p, true); 
        } finally { 
            check(); 
        } 
 
    } 
 
    @Test(groups = "ticket:911") 
    public void testCheckMethodPreventsBadCredentials() throws Exception { 
 
        Method ec = AdminImpl.class.getMethod("changePassword", String.class); 
        Principal p = new Principal("foo", "bar", "baz"); 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        sessionManager = (SessionManager) applicationContext
                .getBean("sessionManager"); 
        executor = (Executor) this.applicationContext.getBean("executor");
 
        // Service setup 
        JamonPerformanceMonitorInterceptor jamon = new JamonPerformanceMonitorInterceptor();
        loginAop = new LoginInterceptor((CurrentDetails) holder);
        factory = new ServiceFactory((OmeroContext) applicationContext);
        factory = new InterceptingServiceFactory(factory, loginAop, jamon);
        iQuery = (LocalQuery) factory.getQueryService();
        iUpdate = (LocalUpdate) factory.getUpdateService();
        iAdmin = (LocalAdmin) factory.getAdminService();
        iLdap = factory.getLdapService();
        iConfig = factory.getConfigService();
        iContainer = factory.getContainerService();
        iMetadata = factory.getMetadataService();
        iPixels = factory.getPixelsService();
        iSession = factory.getSessionService();
 
        // Disabling the background indexer. If you want indexing then 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java