io.quarkiverse.ironjacamar.runtime.QuarkusIronJacamarLogger_$logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-ironjacamar Show documentation
Show all versions of quarkus-ironjacamar Show documentation
Run Jakarta Connector (JCA) adapters in Quarkus
package io.quarkiverse.ironjacamar.runtime;
import java.util.Locale;
import java.io.Serializable;
import javax.annotation.processing.Generated;
import java.util.Set;
import io.quarkus.runtime.configuration.ConfigurationException;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.BasicLogger;
import jakarta.enterprise.inject.spi.DeploymentException;
import java.lang.String;
import org.jboss.logging.Logger;
import java.util.Arrays;
import static org.jboss.logging.Logger.Level.INFO;
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 = "2023-11-06T09:44:05+0000")
public class QuarkusIronJacamarLogger_$logger extends DelegatingBasicLogger implements QuarkusIronJacamarLogger, BasicLogger, Serializable {
private static final long serialVersionUID = 1L;
private static final String FQCN = QuarkusIronJacamarLogger_$logger.class.getName();
public QuarkusIronJacamarLogger_$logger(final Logger log) {
super(log);
}
private static final Locale LOCALE = Locale.ROOT;
protected Locale getLoggingLocale() {
return LOCALE;
}
@Override
public final void startingResourceAdapter(final String id, final String description) {
super.log.logf(FQCN, INFO, null, startingResourceAdapter$str(), id, description);
}
protected String startingResourceAdapter$str() {
return "QIJ000001: Starting Resource Adapter %s: %s";
}
@Override
public final void stoppingResourceAdapter(final String id) {
super.log.logf(FQCN, INFO, null, stoppingResourceAdapter$str(), id);
}
protected String stoppingResourceAdapter$str() {
return "QIJ000002: Stopping Resource Adapter %s";
}
@Override
public final void noDefaultResourceAdapterKindFound() {
super.log.logf(FQCN, WARN, null, noDefaultResourceAdapterKindFound$str());
}
protected String noDefaultResourceAdapterKindFound$str() {
return "QIJ000003: No default resource adapter kind found. IronJacamar is disabled";
}
protected String resourceAdapterFactoryMustBeAnnotatedException$str() {
return "QIJ000004: Resource adapter factory %s must be annotated with @ResourceAdapterKind";
}
@Override
public final DeploymentException resourceAdapterFactoryMustBeAnnotatedException(final String factory) {
final DeploymentException result = new DeploymentException(String.format(getLoggingLocale(), resourceAdapterFactoryMustBeAnnotatedException$str(), factory));
_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 useIdentifierAnnotation$str() {
return "QIJ000005: Because there are more than one resource adapter configured, you need to explicitly use the @Identifier annotation on %s";
}
@Override
public final DeploymentException useIdentifierAnnotation(final String annotationTarget) {
final DeploymentException result = new DeploymentException(String.format(getLoggingLocale(), useIdentifierAnnotation$str(), annotationTarget));
_copyStackTraceMinusOne(result);
return result;
}
protected String multipleKindsFound$str() {
return "QIJ000006: Multiple kinds found (%s), please set the kind config for the %s configuration";
}
@Override
public final ConfigurationException multipleKindsFound(final Set missing, final String configuration) {
final ConfigurationException result = new ConfigurationException(String.format(getLoggingLocale(), multipleKindsFound$str(), missing, configuration));
_copyStackTraceMinusOne(result);
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy