Rename BuildInfo to EngineInformation

This commit is contained in:
JeremyStar™ 2024-06-09 16:46:24 +02:00
parent fab03dd546
commit b4eabae312
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
11 changed files with 25 additions and 25 deletions

View file

@ -35,20 +35,20 @@ import java.util.Properties;
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter @Getter
public class BuildInfo { public class EngineInformation {
/** /**
* Instance. * Instance.
* *
* @since 1-alpha0 * @since 1-alpha0
* *
* -- GETTER -- * -- GETTER --
* Returns the {@link BuildInfo} instance. * Returns the {@link EngineInformation} instance.
* *
* @return {@link BuildInfo} instance * @return {@link EngineInformation} instance
* @since 1-alpha0 * @since 1-alpha0
*/ */
@Getter @Getter
private static BuildInfo instance; private static EngineInformation instance;
/** /**
* Provides the engine's version. * Provides the engine's version.
@ -175,7 +175,7 @@ public class BuildInfo {
* *
* @since 1-alpha0 * @since 1-alpha0
*/ */
public BuildInfo() { public EngineInformation() {
LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE)); LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE));
// Only allow one instance // Only allow one instance

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineDependencyJansi implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJansi()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJansi());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineDependencyJetbrainsAnnotations implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJetbrainsAnnotations()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJetbrainsAnnotations());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineDependencyLombok implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyLombok()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyLombok());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EnginePluginLombok implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginLombok()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginLombok());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EnginePluginShadow implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginShadow()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginShadow());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineVersionFork implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningFork()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningFork());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineVersionType implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningType().name().toLowerCase()); return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningType().name().toLowerCase());
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineVersionTyperelease implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningTyperelease())); return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningTyperelease()));
} }
} }

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.data.placeholders; package de.staropensource.sosengine.base.data.placeholders;
import de.staropensource.sosengine.base.classes.Placeholder; import de.staropensource.sosengine.base.classes.Placeholder;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
/** /**
@ -48,6 +48,6 @@ public class EngineVersionVersion implements Placeholder {
@NotNull @NotNull
@Override @Override
public String replace(@NotNull String text) { public String replace(@NotNull String text) {
return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningVersion())); return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningVersion()));
} }
} }

View file

@ -19,12 +19,12 @@
package de.staropensource.sosengine.base.types; package de.staropensource.sosengine.base.types;
import de.staropensource.sosengine.base.data.info.BuildInfo; import de.staropensource.sosengine.base.data.info.EngineInformation;
/** /**
* Provides all available version types. * Provides all available version types.
* *
* @see BuildInfo#versioningType * @see EngineInformation#versioningType
* @since 1-alpha0 * @since 1-alpha0
*/ */
@SuppressWarnings({ "unused" }) @SuppressWarnings({ "unused" })