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

org.wildfly.extension.ai.AILogger_$logger Maven / Gradle / Ivy

There is a newer version: 0.1.0
Show newest version
package org.wildfly.extension.ai;

import java.util.Locale;
import org.jboss.as.server.deployment.DeploymentUnitProcessingException;
import java.io.Serializable;
import javax.annotation.processing.Generated;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import org.jboss.as.controller.OperationFailedException;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;
import org.jboss.as.server.deployment.DeploymentUnit;


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

/**
 * Warning this class consists of generated code.
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2024-11-15T15:20:44+0100")
public class AILogger_$logger extends DelegatingBasicLogger implements AILogger, BasicLogger, Serializable {
    private static final long serialVersionUID = 1L;
    private static final String FQCN = AILogger_$logger.class.getName();
    public AILogger_$logger(final Logger log) {
        super(log);
    }
    private static final Locale LOCALE = Locale.ROOT;
    protected Locale getLoggingLocale() {
        return LOCALE;
    }
    @Override
    public final void cdiRequired() {
        super.log.logf(FQCN, WARN, null, cdiRequired$str());
    }
    protected String cdiRequired$str() {
        return "WFAI00001: The deployment does not have Jakarta Dependency Injection enabled.";
    }
    protected String unableToResolveAnnotationIndex$str() {
        return "WFAI00002: Unable to resolve annotation index for deployment unit: %s";
    }
    @Override
    public final DeploymentUnitProcessingException unableToResolveAnnotationIndex(final DeploymentUnit deploymentUnit) {
        final DeploymentUnitProcessingException result = new DeploymentUnitProcessingException(String.format(getLoggingLocale(), unableToResolveAnnotationIndex$str(), deploymentUnit));
        _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 chatLanguageModelServiceUnavailable$str() {
        return "WFAI00003: Couldn't access the Chat Language Model called %s";
    }
    @Override
    public final OperationFailedException chatLanguageModelServiceUnavailable(final String chatLanguageModelName) {
        final OperationFailedException result = new OperationFailedException(String.format(getLoggingLocale(), chatLanguageModelServiceUnavailable$str(), chatLanguageModelName));
        _copyStackTraceMinusOne(result);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy