Update package structure

This commit is contained in:
JeremyStar™ 2024-07-08 11:32:08 +02:00
parent 000a7d3aca
commit fd6c8851ad
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
109 changed files with 229 additions and 235 deletions

View file

@ -28,13 +28,13 @@ import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioning
import de.staropensource.sosengine.base.events.EngineCrashEvent;
import de.staropensource.sosengine.base.events.EngineShutdownEvent;
import de.staropensource.sosengine.base.events.LogEvent;
import de.staropensource.sosengine.base.events.internal.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.logging.CrashHandler;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.ImmutableMap;
import de.staropensource.sosengine.base.types.dependency.DependencyVector;
import de.staropensource.sosengine.base.utility.DependencyResolver;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import de.staropensource.sosengine.base.utility.PlaceholderEngine;
@ -163,10 +163,9 @@ public final class Engine implements SubsystemMainClass {
*/
private void initializeClasses() {
// Sorted in rough order of dependence
new EngineInformation();
new PlaceholderEngine();
EngineInformation.getInstance().load();
EngineInformation.updateVariables();
}
/**
@ -356,7 +355,7 @@ public final class Engine implements SubsystemMainClass {
*/
@Override
public DependencyVector getDependencyVector() {
return new DependencyVector("engine", StarOpenSourceVersioningSystem.class, EngineInformation.getInstance().getVersioningString());
return new DependencyVector("engine", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString());
}
/**

View file

@ -25,8 +25,8 @@ import de.staropensource.sosengine.base.classes.logging.LogLevel;
import de.staropensource.sosengine.base.logging.CrashHandler;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.utility.PropertyParser;
import de.staropensource.sosengine.base.utility.converter.AnsiShortcodeConverter;
import de.staropensource.sosengine.base.utility.parser.PropertyParser;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ -162,8 +162,6 @@ public final class EngineConfiguration implements SubsystemConfiguration {
* Contains the logging template used for creating log messages.
*
* @see Logger
* @see de.staropensource.sosengine.base.data.placeholder Global placeholder list
* @see de.staropensource.sosengine.base.logging.placeholders.logger Logger placeholder list
* @since 1-alpha0
*
* -- GETTER --

View file

@ -21,9 +21,9 @@ package de.staropensource.sosengine.base.classes;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.annotations.EventListener;
import de.staropensource.sosengine.base.events.internal.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.dependency.DependencyVector;
/**
* The interface for engine subsystem main classes.

View file

@ -21,12 +21,11 @@ package de.staropensource.sosengine.base.data.info;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.types.VersionType;
import de.staropensource.sosengine.base.utility.PropertyParser;
import de.staropensource.sosengine.base.utility.StackTraceParser;
import de.staropensource.sosengine.base.types.versioning.VersionType;
import de.staropensource.sosengine.base.utility.parser.PropertyParser;
import de.staropensource.sosengine.base.utility.parser.StackTraceParser;
import lombok.Getter;
import java.io.IOException;
@ -42,22 +41,7 @@ import java.util.Properties;
* Provides build information about the sos!engine.
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public final class EngineInformation {
/**
* Contains the class instance.
*
* @since 1-alpha0
*
* -- GETTER --
* Returns the class instance.
*
* @return class instance unless {@link Engine} is uninitialized
* @since 1-alpha0
*/
@Getter
private static EngineInformation instance;
/**
* Provides the engine's version.
*
@ -69,7 +53,8 @@ public final class EngineInformation {
* @return engine version
* @since 1-alpha0
*/
private int versioningVersion;
@Getter
private static int versioningVersion;
/**
* Provides the engine's version type.
@ -82,7 +67,8 @@ public final class EngineInformation {
* @return engine version type
* @since 1-alpha0
*/
private VersionType versioningType;
@Getter
private static VersionType versioningType;
/**
* Provides the engine's type release.
@ -95,7 +81,8 @@ public final class EngineInformation {
* @return engine type release
* @since 1-alpha0
*/
private int versioningTyperelease;
@Getter
private static int versioningTyperelease;
/**
* Provides the engine's fork identifier.<br/>
@ -110,7 +97,8 @@ public final class EngineInformation {
* @return engine fork identifier
* @since 1-alpha0
*/
private String versioningFork;
@Getter
private static String versioningFork;
/**
* Provides the engine's full version string.
@ -123,7 +111,8 @@ public final class EngineInformation {
* @return engine version string
* @since 1-alpha1
*/
private String versioningString;
@Getter
private static String versioningString;
/**
@ -137,7 +126,8 @@ public final class EngineInformation {
* @return git dirty value
* @since 1-alpha1
*/
private Boolean gitDirty;
@Getter
private static Boolean gitDirty;
/**
* Provides the branch the engine was built on.
@ -150,7 +140,8 @@ public final class EngineInformation {
* @return git branch
* @since 1-alpha1
*/
private String gitBranch;
@Getter
private static String gitBranch;
/**
* Provides the commit count.
@ -163,7 +154,8 @@ public final class EngineInformation {
* @return git commit count
* @since 1-alpha1
*/
private int gitCommitCount;
@Getter
private static int gitCommitCount;
/**
* Provides the commit identifier (short form).
@ -176,7 +168,8 @@ public final class EngineInformation {
* @return git long commit id
* @since 1-alpha1
*/
private String gitCommitIdentifierShort;
@Getter
private static String gitCommitIdentifierShort;
/**
* Provides the commit identifier (long form).
@ -189,7 +182,8 @@ public final class EngineInformation {
* @return git long commit id
* @since 1-alpha1
*/
private String gitCommitIdentifierLong;
@Getter
private static String gitCommitIdentifierLong;
/**
* Provides the commit header.
@ -202,7 +196,8 @@ public final class EngineInformation {
* @return git commit header
* @since 1-alpha1
*/
private String gitCommitHeader;
@Getter
private static String gitCommitHeader;
/**
* Provides the commit time.
@ -215,7 +210,8 @@ public final class EngineInformation {
* @return git commit time
* @since 1-alpha1
*/
private ZonedDateTime gitCommitTime;
@Getter
private static ZonedDateTime gitCommitTime;
/**
* Provides the commiter's name.
@ -228,7 +224,8 @@ public final class EngineInformation {
* @return git committer name
* @since 1-alpha1
*/
private String gitCommitterName;
@Getter
private static String gitCommitterName;
/**
* Provides the commiter's email.
@ -241,7 +238,8 @@ public final class EngineInformation {
* @return git committer email
* @since 1-alpha1
*/
private String gitCommitterEmail;
@Getter
private static String gitCommitterEmail;
/**
@ -255,7 +253,8 @@ public final class EngineInformation {
* @return Lombok dependency version
* @since 1-alpha0
*/
private String dependencyLombok;
@Getter
private static String dependencyLombok;
/**
* Provides the version of the dependency {@code Jetbrains Annotations}.
@ -268,7 +267,8 @@ public final class EngineInformation {
* @return Jetbrains Annotations dependency version
* @since 1-alpha0
*/
private String dependencyJetbrainsAnnotations;
@Getter
private static String dependencyJetbrainsAnnotations;
/**
* Provides the version of the dependency {@code Jansi}.
@ -281,7 +281,8 @@ public final class EngineInformation {
* @return Jansi dependency version
* @since 1-alpha0
*/
private String dependencyJansi;
@Getter
private static String dependencyJansi;
/**
* Provides the version of the dependency {@code Reflections}.
@ -294,7 +295,8 @@ public final class EngineInformation {
* @return Reflections dependency version
* @since 1-alpha0
*/
private String dependencyReflections;
@Getter
private static String dependencyReflections;
/**
* Provides the version of the dependency {@code SLF4J}.
@ -307,7 +309,8 @@ public final class EngineInformation {
* @return SLF4J dependency version
* @since 1-alpha0
*/
private String dependencySlf4j;
@Getter
private static String dependencySlf4j;
/**
* Provides the version of the dependency {@code LWJGL}.
@ -320,7 +323,8 @@ public final class EngineInformation {
* @return LWJGL dependency version
* @since 1-alpha0
*/
private String dependencyLwjgl;
@Getter
private static String dependencyLwjgl;
/**
* Provides the version of the Gradle plugin {@code Shadow}.
@ -333,7 +337,8 @@ public final class EngineInformation {
* @return Shadow plugin version
* @since 1-alpha0
*/
private String pluginShadow;
@Getter
private static String pluginShadow;
/**
* Provides the version of the Gradle plugin {@code Lombok}.
@ -346,33 +351,27 @@ public final class EngineInformation {
* @return Lombok plugin version
* @since 1-alpha0
*/
private String pluginLombok;
@Getter
private static String pluginLombok;
/**
* Constructs this class.
*
* @since 1-alpha0
*/
public EngineInformation() {
// Only allow one instance
if (instance == null)
instance = this;
else {
Logger.crash(new LogIssuer(getClass(), CodePart.ENGINE), "Tried reinitializing " + getClass().getName() + " twice");
}
}
public EngineInformation() {}
/**
* Updates all variables.
*
* @since 1-alpha1
*/
public void load() {
LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE));
public static void updateVariables() {
LoggerInstance logger = new LoggerInstance(new LogIssuer(EngineInformation.class, CodePart.ENGINE));
// Load properties from bundled gradle.properties
Properties gradleProperties = new Properties();
InputStream gradleStream = this.getClass().getClassLoader().getResourceAsStream("gradle.properties");
InputStream gradleStream = EngineInformation.class.getClassLoader().getResourceAsStream("gradle.properties");
if (gradleStream == null) {
System.out.println("Unable to load build information: The bundled gradle.properties file could not be found. Do symlinks work on the system that built this JAR?");
@ -394,7 +393,7 @@ public final class EngineInformation {
// Load properties from bundled git.properties
// or fill in blank information if file missing
Properties gitProperties = new Properties();
InputStream gitStream = this.getClass().getClassLoader().getResourceAsStream("git.properties");
InputStream gitStream = EngineInformation.class.getClassLoader().getResourceAsStream("git.properties");
if (gitStream == null) {
logger.error("Unable to load build information: The bundled git.properties file could not be found. Did you download a tarball?");

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -21,8 +21,8 @@ package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersionType;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersionType;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.data.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import de.staropensource.sosengine.base.exceptions.InvalidVersionStringException;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -27,7 +27,7 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
*
* @since 1-alpha0
*/
public class EngineShutdownEvent implements Event {
public final class EngineShutdownEvent implements Event {
/**
* Constructs this class.
*/

View file

@ -21,9 +21,9 @@ package de.staropensource.sosengine.base.events;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.classes.events.Event;
import de.staropensource.sosengine.base.classes.helpers.EventHelper;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.classes.logging.LogLevel;
import de.staropensource.sosengine.base.classes.helpers.EventHelper;
import org.jetbrains.annotations.NotNull;
import java.lang.reflect.InvocationTargetException;

View file

@ -34,7 +34,7 @@ import java.lang.reflect.Method;
* @see Miscellaneous#executeSafely(Runnable, String)
* @since 1-alpha0
*/
public class ThrowableCatchEvent implements Event {
public final class ThrowableCatchEvent implements Event {
/**
* Constructs this class.
*/

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.exceptions;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
/**
* Represents an exception caused by supplying an invalid or unexpected versioning system.

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.exceptions;
import de.staropensource.sosengine.base.types.VersioningSystem;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.exceptions;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.dependency.DependencyVector;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.events.internal;
package de.staropensource.sosengine.base.internal.events;
import de.staropensource.sosengine.base.classes.events.Event;
import de.staropensource.sosengine.base.classes.helpers.EventHelper;

View file

@ -21,4 +21,4 @@
* Events used for engine-internal communication.
* These events are meant to be listened on by the base engine and it's subsystems.
*/
package de.staropensource.sosengine.base.events.internal;
package de.staropensource.sosengine.base.internal.events;

View file

@ -0,0 +1,25 @@
/*
* STAROPENSOURCE ENGINE SOURCE FILE
* Copyright (c) 2024 The StarOpenSource Engine Contributors
* Licensed under the GNU Affero General Public License v3
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* Contains internal packages.
*
* @since 1-alpha1
*/
package de.staropensource.sosengine.base.internal;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencyJansi implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJansi());
return text.replace("%" + getName() + "%", EngineInformation.getDependencyJansi());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencyJetbrainsAnnotations implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJetbrainsAnnotations());
return text.replace("%" + getName() + "%", EngineInformation.getDependencyJetbrainsAnnotations());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencyLombok implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyLombok());
return text.replace("%" + getName() + "%", EngineInformation.getDependencyLombok());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencyLwjgl implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyLwjgl());
return text.replace("%" + getName() + "%", EngineInformation.getDependencyLwjgl());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencyReflections implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyReflections());
return text.replace("%" + getName() + "%", EngineInformation.getDependencyReflections());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineDependencySlf4j implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencySlf4j());
return text.replace("%" + getName() + "%", EngineInformation.getDependencySlf4j());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitBranch implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitBranch());
return text.replace("%" + getName() + "%", EngineInformation.getGitBranch());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitHeader implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitCommitHeader());
return text.replace("%" + getName() + "%", EngineInformation.getGitCommitHeader());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitIdLong implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitCommitIdentifierLong());
return text.replace("%" + getName() + "%", EngineInformation.getGitCommitIdentifierLong());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitIdShort implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitCommitIdentifierShort());
return text.replace("%" + getName() + "%", EngineInformation.getGitCommitIdentifierShort());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeDay implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getDayOfMonth()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getDayOfMonth()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeHour implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getHour()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getHour()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeMinute implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getMinute()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getMinute()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeMonth implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getMonth()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getMonth()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeSecond implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getSecond()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getSecond()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitTimeYear implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitTime().getYear()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitTime().getYear()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommits implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitCommitCount()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitCommitCount()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitterEmail implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitCommitterEmail());
return text.replace("%" + getName() + "%", EngineInformation.getGitCommitterEmail());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitCommitterName implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getGitCommitterName());
return text.replace("%" + getName() + "%", EngineInformation.getGitCommitterName());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineGitDirty implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getGitDirty()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getGitDirty()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EnginePluginLombok implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginLombok());
return text.replace("%" + getName() + "%", EngineInformation.getPluginLombok());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EnginePluginShadow implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginShadow());
return text.replace("%" + getName() + "%", EngineInformation.getPluginShadow());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineVersionFork implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningFork());
return text.replace("%" + getName() + "%", EngineInformation.getVersioningFork());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineVersionType implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningType().name().toLowerCase());
return text.replace("%" + getName() + "%", EngineInformation.getVersioningType().name().toLowerCase());
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineVersionTyperelease implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningTyperelease()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getVersioningTyperelease()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.EngineInformation;
@ -48,6 +48,6 @@ public final class EngineVersionVersion implements Placeholder {
@NotNull
@Override
public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningVersion()));
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getVersioningVersion()));
}
}

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.JvmInformation;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.Miscellaneous;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.utility.StackTraceParser;
import de.staropensource.sosengine.base.utility.parser.StackTraceParser;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -23,4 +23,4 @@
* @see de.staropensource.sosengine.base.logging.CrashHandler
* @since 1-alpha0
*/
package de.staropensource.sosengine.base.logging.placeholders.crashhandler;
package de.staropensource.sosengine.base.internal.placeholders.crashhandler;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogLevel;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogLevel;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;

View file

@ -23,4 +23,4 @@
* @see de.staropensource.sosengine.base.logging.Logger
* @since 1-alpha0
*/
package de.staropensource.sosengine.base.logging.placeholders.logger;
package de.staropensource.sosengine.base.internal.placeholders.logger;

View file

@ -24,4 +24,4 @@
* @see de.staropensource.sosengine.base.classes.Placeholder
* @since 1-alpha0
*/
package de.staropensource.sosengine.base.data.placeholder;
package de.staropensource.sosengine.base.internal.placeholders;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging;
package de.staropensource.sosengine.base.internal.types;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.classes.logging.LogLevel;

View file

@ -25,7 +25,7 @@ import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.classes.logging.LogLevel;
import de.staropensource.sosengine.base.events.EngineCrashEvent;
import de.staropensource.sosengine.base.logging.placeholders.crashhandler.*;
import de.staropensource.sosengine.base.internal.placeholders.crashhandler.*;
import de.staropensource.sosengine.base.utility.PlaceholderEngine;
import lombok.Getter;
import lombok.Setter;

View file

@ -21,14 +21,12 @@ package de.staropensource.sosengine.base.logging;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.classes.logging.LogRule;
import de.staropensource.sosengine.base.classes.logging.LogRuleType;
import de.staropensource.sosengine.base.classes.logging.LoggerImpl;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.events.LogEvent;
import de.staropensource.sosengine.base.logging.placeholders.logger.*;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.classes.logging.LogLevel;
import de.staropensource.sosengine.base.classes.logging.*;
import de.staropensource.sosengine.base.events.LogEvent;
import de.staropensource.sosengine.base.internal.placeholders.logger.*;
import de.staropensource.sosengine.base.internal.types.QueuedLogMessage;
import de.staropensource.sosengine.base.logging.implementation.ColoredLoggerImpl;
import de.staropensource.sosengine.base.utility.PlaceholderEngine;
import lombok.Getter;
@ -206,7 +204,7 @@ public final class Logger {
temporaryPlaceholders.add(new LogClass(issuer));
temporaryPlaceholders.add(new LogColorPrimary(level));
temporaryPlaceholders.add(new LogInfo(issuer));
temporaryPlaceholders.add(new de.staropensource.sosengine.base.logging.placeholders.logger.LogLevel(level));
temporaryPlaceholders.add(new de.staropensource.sosengine.base.internal.placeholders.logger.LogLevel(level));
temporaryPlaceholders.add(new LogPackage(issuer));
temporaryPlaceholders.add(new LogPath(issuer));

View file

@ -1,26 +0,0 @@
/*
* STAROPENSOURCE ENGINE SOURCE FILE
* Copyright (c) 2024 The StarOpenSource Engine Contributors
* Licensed under the GNU Affero General Public License v3
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* Contains placeholders used by the {@link de.staropensource.sosengine.base.logging.Logger} or {@link de.staropensource.sosengine.base.logging.CrashHandler}.
*
* @see de.staropensource.sosengine.base.logging.Logger
* @see de.staropensource.sosengine.base.logging.CrashHandler
*/
package de.staropensource.sosengine.base.logging.placeholders;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.dependency;
import lombok.Getter;

View file

@ -17,8 +17,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.dependency;
import de.staropensource.sosengine.base.types.versioning.VersioningSystem;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.vectors;
import lombok.Getter;
import lombok.Setter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.vectors;
import lombok.Getter;
import lombok.Setter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.vectors;
import lombok.Getter;
import lombok.Setter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.vectors;
import lombok.Getter;
import lombok.Setter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.versioning;
import de.staropensource.sosengine.base.data.info.EngineInformation;
import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioningSystem;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.types;
package de.staropensource.sosengine.base.types.versioning;
import de.staropensource.sosengine.base.exceptions.IncompatibleVersioningSystemException;
import org.jetbrains.annotations.NotNull;

View file

@ -21,8 +21,8 @@ package de.staropensource.sosengine.base.utility;
import de.staropensource.sosengine.base.exceptions.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exceptions.UnmetDependenciesException;
import de.staropensource.sosengine.base.types.DependencyResolvedDependencyVector;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.dependency.DependencyResolvedDependencyVector;
import de.staropensource.sosengine.base.types.dependency.DependencyVector;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
@ -36,7 +36,7 @@ import java.util.Map;
* @since 1-alpha1
*/
@SuppressWarnings({ "unused" })
public class DependencyResolver {
public final class DependencyResolver {
/**
* A list of {@link DependencyVector}s.
*

View file

@ -33,7 +33,7 @@ import java.util.Set;
* @since 1-alpha0
*/
@SuppressWarnings({ "unused" })
public class ListFormatter {
public final class ListFormatter {
/**
* Constructs this class.
*/

View file

@ -22,7 +22,7 @@ package de.staropensource.sosengine.base.utility;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.data.placeholder.*;
import de.staropensource.sosengine.base.internal.placeholders.*;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.types.CodePart;
import lombok.Getter;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.utility;
package de.staropensource.sosengine.base.utility.parser;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.logging.LoggerInstance;
@ -36,7 +36,7 @@ import java.util.Properties;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@NotNull
public class PropertyParser {
public final class PropertyParser {
/**
* Contains an instance providing access to the JVM-wide properties.
*

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.utility;
package de.staropensource.sosengine.base.utility.parser;
import lombok.AccessLevel;
import lombok.Getter;
@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
* @since 1-alpha0
*/
@SuppressWarnings({ "unused", "JavadocBlankLines" })
public class StackTraceParser {
public final class StackTraceParser {
/**
* The throwable to use.
*

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.srctests.utility;
import de.staropensource.sosengine.base.utility.PropertyParser;
import de.staropensource.sosengine.base.utility.parser.PropertyParser;
import de.staropensource.sosengine.unittests.UnitLogger;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.srctests.utility;
import de.staropensource.sosengine.base.utility.StackTraceParser;
import de.staropensource.sosengine.base.utility.parser.StackTraceParser;
import de.staropensource.sosengine.unittests.UnitLogger;
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.DisplayName;

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.graphics.opengl;
import de.staropensource.sosengine.base.types.Vec2i;
import de.staropensource.sosengine.base.types.vectors.Vec2i;
import de.staropensource.sosengine.graphics.classes.ApiManagementClass;
import de.staropensource.sosengine.graphics.opengl.classes.Window;
import org.jetbrains.annotations.NotNull;

View file

@ -28,7 +28,7 @@ import de.staropensource.sosengine.base.data.info.EngineInformation;
import de.staropensource.sosengine.base.data.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.types.DependencyVector;
import de.staropensource.sosengine.base.types.dependency.DependencyVector;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import de.staropensource.sosengine.graphics.GraphicsSubsystem;
import de.staropensource.sosengine.graphics.classes.ApiMainClass;
@ -200,6 +200,6 @@ public final class OpenGlSubsystem implements ApiMainClass {
/** {@inheritDoc} */
@Override
public DependencyVector getDependencyVector() {
return new DependencyVector("opengl", StarOpenSourceVersioningSystem.class, EngineInformation.getInstance().getVersioningString());
return new DependencyVector("opengl", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString());
}
}

View file

@ -22,7 +22,7 @@ package de.staropensource.sosengine.graphics.opengl.classes;
import de.staropensource.sosengine.base.classes.logging.LogIssuer;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.types.Vec2i;
import de.staropensource.sosengine.base.types.vectors.Vec2i;
import de.staropensource.sosengine.graphics.events.GraphicsApiErrorEvent;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

Some files were not shown because too many files have changed in this diff Show more