
io.tracee.contextlogger.outputgenerator.TraceeContextStringRepresentationBuilderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contextlogger-core Show documentation
Show all versions of contextlogger-core Show documentation
Please refer to https://github.com/tracee/contextlogger.
package io.tracee.contextlogger.outputgenerator;
import io.tracee.contextlogger.outputgenerator.api.TraceeContextStringRepresentationBuilder;
import io.tracee.contextlogger.outputgenerator.outputelements.OutputElement;
import io.tracee.contextlogger.outputgenerator.writer.OutputWriterToOutputTransformer;
import io.tracee.contextlogger.profile.ProfileSettings;
/**
* Main class for creating output with given OutputWriterConfiguration.
*/
public class TraceeContextStringRepresentationBuilderImpl extends AbstractContextStringRepresentationBuilder {
public TraceeContextStringRepresentationBuilderImpl() {
}
@Override
public String createStringRepresentation(final Object... instancesToProcess) {
OutputElement tmp = RootOutputElementTreeBuilder.buildOutputElementTree(new ProfileSettings(this), instancesToProcess);
return OutputWriterToOutputTransformer.produceOutput(this.getOutputWriterConfiguration(), tmp);
}
@Override
public TraceeContextStringRepresentationBuilder cloneStringRepresentationBuilder() {
TraceeContextStringRepresentationBuilderImpl clone = new TraceeContextStringRepresentationBuilderImpl();
this.cloneTo(clone);
return clone;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy