List of usage examples for org.springframework.aop.interceptor JamonPerformanceMonitorInterceptor JamonPerformanceMonitorInterceptor
public JamonPerformanceMonitorInterceptor()
From source file:com.apress.prospringintegration.monitoring.MonitoringConfiguration.java
@Bean(name = JAMON_ID) public JamonPerformanceMonitorInterceptor jamonPerformanceMonitorInterceptor() { JamonPerformanceMonitorInterceptor interceptor = new JamonPerformanceMonitorInterceptor(); interceptor.setTrackAllInvocations(true); interceptor.setUseDynamicLogger(true); return interceptor; }
From source file:ome.server.itests.AbstractManagedContextTest.java
/** * @see org.springframework.test.AbstractDependencyInjectionSpringContextTests#onSetUp() *//*from w w w . j a va 2 s.c o m*/ @BeforeClass protected final void onSetUp() throws Exception { this.applicationContext = OmeroContext.getManagedServerContext(); applicationContext.refreshAllIfNecessary(); DataSource dataSource = (DataSource) applicationContext.getBean("dataSource"); ldapTemplate = (LdapTemplate) applicationContext.getBean("ldapTemplate"); // data = new OMEData(); // data.setDataSource(dataSource); securitySystem = (SecuritySystem) applicationContext.getBean("securitySystem"); roles = securitySystem.getSecurityRoles(); holder = (PrincipalHolder) applicationContext.getBean("principalHolder"); sessionManager = (SessionManager) applicationContext.getBean("sessionManager"); executor = (Executor) this.applicationContext.getBean("executor"); // Service setup JamonPerformanceMonitorInterceptor jamon = new JamonPerformanceMonitorInterceptor(); loginAop = new LoginInterceptor(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 FullTextThread ftt = applicationContext.getBean("fullTextThread", FullTextThread.class); ftt.stop(); loginRoot(); }