Search in sources :

Example 1 with DefaultListenerManager

use of org.gradle.internal.event.DefaultListenerManager in project gradle by gradle.

the class SynchronizedLogging method services.

private ThreadLoggingServices services() {
    ThreadLoggingServices threadServices = services.get();
    if (threadServices == null) {
        DefaultListenerManager manager = new DefaultListenerManager();
        DefaultProgressLoggerFactory progressLoggerFactory = new DefaultProgressLoggerFactory(manager.getBroadcaster(ProgressListener.class), new TrueTimeProvider());
        threadServices = new ThreadLoggingServices(manager, progressLoggerFactory);
        services.set(threadServices);
    }
    return threadServices;
}
Also used : DefaultProgressLoggerFactory(org.gradle.internal.logging.progress.DefaultProgressLoggerFactory) ProgressListener(org.gradle.internal.logging.progress.ProgressListener) DefaultListenerManager(org.gradle.internal.event.DefaultListenerManager) TrueTimeProvider(org.gradle.internal.time.TrueTimeProvider)

Aggregations

DefaultListenerManager (org.gradle.internal.event.DefaultListenerManager)1 DefaultProgressLoggerFactory (org.gradle.internal.logging.progress.DefaultProgressLoggerFactory)1 ProgressListener (org.gradle.internal.logging.progress.ProgressListener)1 TrueTimeProvider (org.gradle.internal.time.TrueTimeProvider)1