All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.intarsys.tools.logging.ConstantHandlerFactory Maven / Gradle / Ivy

There is a newer version: 4.11
Show newest version
package de.intarsys.tools.logging;

import java.util.logging.Handler;

/**
 * An {@link IHandlerFactory} that returns a constant {@link Handler} value.
 * 
 */
public class ConstantHandlerFactory extends CommonHandlerFactory {

	public ConstantHandlerFactory(Handler handler) {
		super();
		setSingleton(true);
		setSingletonHandler(handler);
	}

	@Override
	protected Handler basicCreateHandler() {
		return getSingletonHandler();
	}

	public Handler getHandler() {
		return getSingletonHandler();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy