001/*
002 * Copyright (C) 2019 Michael N. Lipp (http://www.mnl.de)
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *        http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package de.mnl.osgi.osgi2jul;
018
019import java.text.MessageFormat;
020import java.util.logging.Handler;
021
022/**
023 * Holds the configuration for a handler.
024 */
025public class HandlerConfig {
026
027    private final Handler handler;
028    private final MessageFormat outputFormat;
029
030    /**
031     * Instantiates a new handler configuration.
032     *
033     * @param handler the handler
034     * @param outputFormat the output format
035     */
036    public HandlerConfig(Handler handler, MessageFormat outputFormat) {
037        super();
038        this.handler = handler;
039        this.outputFormat = outputFormat;
040    }
041
042    /**
043     * Gets the handler.
044     *
045     * @return the handler
046     */
047    public Handler getHandler() {
048        return handler;
049    }
050
051    /**
052     * Gets the output format.
053     *
054     * @return the outputFormat
055     */
056    public MessageFormat getOutputFormat() {
057        return outputFormat;
058    }
059
060}