
io.github.iac_m.jsonlogger.generated.adapters.JsonLoggerLifecycleInjectionAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-logger-connector
Show all versions of json-logger-connector
JSON Logger is a custom-made Mule logger component which allows user to efficiently log traceable messages and Mule variables in JSON format.
The newest version!
package io.github.iac_m.jsonlogger.generated.adapters;
import io.github.iac_m.jsonlogger.JsonLogger;
import javax.annotation.Generated;
import org.mule.api.MuleContext;
import org.mule.api.MuleException;
import org.mule.api.context.MuleContextAware;
import org.mule.api.lifecycle.Disposable;
import org.mule.api.lifecycle.Initialisable;
import org.mule.api.lifecycle.InitialisationException;
import org.mule.api.lifecycle.Startable;
import org.mule.api.lifecycle.Stoppable;
import org.mule.common.MuleVersion;
import org.mule.config.MuleManifest;
import org.mule.config.i18n.CoreMessages;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A JsonLoggerLifecycleInjectionAdapter
is a wrapper around {@link JsonLogger } that adds lifecycle methods to the pojo. This adapter also allows the injection of several Mule facilities when a MuleContext is set.
*
*/
@SuppressWarnings("all")
@Generated(value = "Mule DevKit Version 3.9.0", date = "2017-05-16T02:13:05+12:00", comments = "Build UNNAMED.2793.f49b6c7")
public class JsonLoggerLifecycleInjectionAdapter
extends JsonLoggerMetadataAdapter
implements MuleContextAware, Disposable, Initialisable, Startable, Stoppable
{
@Override
public void start()
throws MuleException
{
}
@Override
public void stop()
throws MuleException
{
}
@Override
public void initialise()
throws InitialisationException
{
Logger log = LoggerFactory.getLogger(JsonLoggerLifecycleInjectionAdapter.class);
MuleVersion connectorVersion = new MuleVersion("3.5.0");
MuleVersion muleVersion = new MuleVersion(MuleManifest.getProductVersion());
if (!muleVersion.atLeastBase(connectorVersion)) {
throw new InitialisationException(CoreMessages.minMuleVersionNotMet(this.getMinMuleVersion()), this);
}
}
@Override
public void dispose() {
}
@Override
public void setMuleContext(MuleContext context) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy