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

org.wildfly.security.ElytronMessages_$logger Maven / Gradle / Ivy

There is a newer version: 2.5.2.Final
Show newest version
package org.wildfly.security;

import java.util.Locale;
import java.lang.IllegalStateException;
import java.io.Serializable;
import javax.annotation.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import java.lang.Throwable;
import java.lang.String;
import java.security.NoSuchAlgorithmException;
import org.jboss.logging.Logger;
import java.util.Arrays;


import static org.jboss.logging.Logger.Level.INFO;

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2022-01-04T16:06:37-0500")
public class ElytronMessages_$logger extends DelegatingBasicLogger implements ElytronMessages, BasicLogger, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = ElytronMessages_$logger.class.getName();
    public ElytronMessages_$logger(final Logger log) {
        super(log);
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    @Override
    public final void logVersion(final String versionString) {
        super.log.logf(FQCN, INFO, null, logVersion$str(), versionString);
    }
    protected String logVersion$str() {
        return "ELY00001: WildFly Elytron version %s";
    }
    protected String cannotInstantiateSelfReferentialFactory$str() {
        return "ELY00005: Cannot instantiate self-referential factory";
    }
    @Override
    public final IllegalStateException cannotInstantiateSelfReferentialFactory() {
        final IllegalStateException result = new IllegalStateException(String.format(getLoggingLocale(), cannotInstantiateSelfReferentialFactory$str()));
        _copyStackTraceMinusOne(result);
        return result;
    }
    private static void _copyStackTraceMinusOne(final Throwable e) {
        final StackTraceElement[] st = e.getStackTrace();
        e.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
    }
    protected String noSuchAlgorithmCreateService$str() {
        return "ELY00011: Unable to create service for '%s.%s' ";
    }
    @Override
    public final NoSuchAlgorithmException noSuchAlgorithmCreateService(final String serviceType, final String algorithm, final Throwable cause) {
        final NoSuchAlgorithmException result = new NoSuchAlgorithmException(String.format(getLoggingLocale(), noSuchAlgorithmCreateService$str(), serviceType, algorithm), cause);
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy