de.intarsys.tools.logging.ConstantHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
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