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

com.anrisoftware.resources.images.mapcachedresolutions.ImagesMapLogger Maven / Gradle / Ivy

There is a newer version: 4.7.0
Show newest version
/*
 * Copyright 2012-2016 Erwin Müller 
 *
 * This file is part of resources-images.
 *
 * resources-images is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * resources-images is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with resources-images. If not, see .
 */
package com.anrisoftware.resources.images.mapcachedresolutions;

import com.anrisoftware.globalpom.log.AbstractLogger;
import com.anrisoftware.resources.images.api.ImageResource;
import com.anrisoftware.resources.images.api.ImagesMap;

/**
 * Logger messages for the {@link ImagesMapImpl}.
 * 
 * @author Erwin Mueller, [email protected]
 * @since 1.0
 */
class ImagesMapLogger extends AbstractLogger {

	private static final String NO_IMAGE = "Image resource '{}' with the size not found in the map, returning the next nearest.";
	private static final String ALREADY_MAP = "Image resource {} already in map {}.";

	ImagesMapLogger() {
		super(ImagesMapImpl.class);
	}

	void imageAlreadyInMap(ImagesMap imagesMap, ImageResource image) {
		log.warn(ALREADY_MAP, image, imagesMap);
	}

	void noImageReturningNearest(ImagesMap imagesMap, String name) {
		log.warn(NO_IMAGE, name);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy