com.jpattern.service.log.slf4j.ASlf4jLoggerServiceBuilder Maven / Gradle / Ivy
The newest version!
package com.jpattern.service.log.slf4j;
import com.jpattern.core.IServiceBuilder;
import com.jpattern.service.log.ILoggerService;
/**
*
* @author Francesco Cina'
*
* 4 Mar 2011
*/
public abstract class ASlf4jLoggerServiceBuilder implements IServiceBuilder {
private static final long serialVersionUID = 1L;
private final ILoggerBackendConfigurator loggerBackendConfigurator;
private final IServiceBuilder loggerServiceBuilder;
public ASlf4jLoggerServiceBuilder(IServiceBuilder loggerServiceBuilder, ILoggerBackendConfigurator loggerBackendConfigurator) {
this.loggerServiceBuilder = loggerServiceBuilder;
this.loggerBackendConfigurator = loggerBackendConfigurator;
}
@Override
public final ILoggerService buildService() {
loggerBackendConfigurator.configure();
return new Slf4jLoggerService( loggerServiceBuilder.buildService() );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy