Rename and move packages
Some checks failed
build-and-test / test (push) Failing after 57s
build-and-test / generate-javadoc (push) Successful in 1m18s
build-and-test / build (push) Successful in 17m43s

This commit is contained in:
JeremyStar™ 2024-08-31 14:02:05 +02:00
parent db10965c69
commit 07614d4519
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
123 changed files with 251 additions and 304 deletions

View file

@ -21,8 +21,8 @@ package de.staropensource.sosengine.ansi;
import de.staropensource.sosengine.base.annotation.EngineSubsystem;
import de.staropensource.sosengine.base.implementable.SubsystemClass;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.dataprovider.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import de.staropensource.sosengine.base.implementation.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.type.DependencyVector;
import lombok.Getter;

View file

@ -22,15 +22,15 @@ package de.staropensource.sosengine.base;
import de.staropensource.sosengine.base.annotation.EngineSubsystem;
import de.staropensource.sosengine.base.implementable.ShutdownHandler;
import de.staropensource.sosengine.base.implementable.SubsystemClass;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.dataprovider.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import de.staropensource.sosengine.base.implementation.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.event.*;
import de.staropensource.sosengine.base.exception.NoAccessException;
import de.staropensource.sosengine.base.exception.NoCallAccessException;
import de.staropensource.sosengine.base.exception.dependency.UnmetDependenciesException;
import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.types.DependencySubsystemVector;
import de.staropensource.sosengine.base.internal.event.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.type.DependencySubsystemVector;
import de.staropensource.sosengine.base.logging.*;
import de.staropensource.sosengine.base.type.DependencyVector;
import de.staropensource.sosengine.base.type.EngineState;
@ -523,12 +523,12 @@ public final class Engine extends SubsystemClass {
* Sets the engine state.
*
* @param state new state
* @throws NoAccessException if the caller class is unauthorized
* @throws NoCallAccessException if the caller class is unauthorized
* @since v1-alpha2
*/
public void setState(@NotNull EngineState state) throws NoAccessException {
public void setState(@NotNull EngineState state) throws NoCallAccessException {
if (!Thread.currentThread().getStackTrace()[2].getClassName().startsWith("de.staropensource.sosengine.base."))
throw new NoAccessException("Only classes inside the \"de.staropensource.sosengine.base\" package are allowed to call this method.");
throw new NoCallAccessException("Only classes inside the \"de.staropensource.sosengine.base\" package are allowed to call this method.");
this.state = state;
}

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base;
import de.staropensource.sosengine.base.implementable.ShortcodeParserSkeleton;
import de.staropensource.sosengine.base.implementable.Configuration;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.logging.CrashHandler;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.type.EngineState;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base;
import de.staropensource.sosengine.base.implementable.ShutdownHandler;
import de.staropensource.sosengine.base.exception.NoAccessException;
import de.staropensource.sosengine.base.exception.NoCallAccessException;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.type.InternalAccessArea;
import lombok.Getter;
@ -89,12 +89,12 @@ public final class EngineInternals {
* Determines whether access to the specified area is allowed.
*
* @param area internal access area to check
* @throws NoAccessException when restricted
* @throws NoCallAccessException when restricted
* @since v1-alpha4
*/
private void isRestricted(@NotNull InternalAccessArea area) throws NoAccessException {
private void isRestricted(@NotNull InternalAccessArea area) throws NoCallAccessException {
if (restrictedAreas.contains(area))
throw new NoAccessException("The internal access area " + area.name() + " has been restricted");
throw new NoCallAccessException("The internal access area " + area.name() + " has been restricted");
}
/**
@ -125,10 +125,10 @@ public final class EngineInternals {
* Highly recommended to keep enabled.
*
* @param status {@code true} to install, {@code false} otherwise
* @throws NoAccessException when restricted
* @throws NoCallAccessException when restricted
* @since v1-alpha4
*/
public void installSafetyShutdownHook(boolean status) throws NoAccessException {
public void installSafetyShutdownHook(boolean status) throws NoCallAccessException {
isRestricted(InternalAccessArea.SAFETY_SHUTDOWN_HOOK);
try {
@ -145,10 +145,10 @@ public final class EngineInternals {
* shutting down the JVM safely.
*
* @param shutdownHandler new shutdown handler
* @throws NoAccessException when restricted
* @throws NoCallAccessException when restricted
* @since v1-alpha4
*/
public void setShutdownHandler(@NotNull ShutdownHandler shutdownHandler) throws NoAccessException {
public void setShutdownHandler(@NotNull ShutdownHandler shutdownHandler) throws NoCallAccessException {
isRestricted(InternalAccessArea.SHUTDOWN_HANDLER_UPDATE);
Engine.getInstance().setShutdownHandler(shutdownHandler);
}
@ -159,10 +159,10 @@ public final class EngineInternals {
* shutting down the JVM safely.
*
* @return shutdown handler
* @throws NoAccessException when restricted
* @throws NoCallAccessException when restricted
* @since v1-alpha4
*/
public @NotNull ShutdownHandler getShutdownHandler() throws NoAccessException {
public @NotNull ShutdownHandler getShutdownHandler() throws NoCallAccessException {
isRestricted(InternalAccessArea.SHUTDOWN_HANDLER_GET);
return Engine.getInstance().getShutdownHandler();
}

View file

@ -1,25 +0,0 @@
/*
* STAROPENSOURCE ENGINE SOURCE FILE
* Copyright (c) 2024 The StarOpenSource Engine Authors
* 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/>.
*/
/**
* Classes which provide or process information.
*
* @since v1-alpha0
*/
package de.staropensource.sosengine.base.dataprovider;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
/**
* Called in the event of an engine crash.

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
/**
* Called when the engine is about to shutdown.

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.logging.Logger;
/**

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.type.logging.LogLevel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.utility.Miscellaneous;
import org.jetbrains.annotations.NotNull;

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.implementable;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
/**
* Represents an event.

View file

@ -22,7 +22,7 @@ package de.staropensource.sosengine.base.implementable;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.annotation.EngineSubsystem;
import de.staropensource.sosengine.base.annotation.EventListener;
import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.internal.event.InternalEngineShutdownEvent;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.type.DependencyVector;
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.implementable.helpers;
package de.staropensource.sosengine.base.implementable.helper;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.annotation.EventListener;
@ -26,7 +26,7 @@ import de.staropensource.sosengine.base.event.LogEvent;
import de.staropensource.sosengine.base.exception.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exception.reflection.InstanceMethodFromStaticContextException;
import de.staropensource.sosengine.base.exception.reflection.InvalidMethodSignature;
import de.staropensource.sosengine.base.exception.reflection.NoAccessException;
import de.staropensource.sosengine.base.exception.reflection.NoReflectionAccessException;
import de.staropensource.sosengine.base.exception.reflection.StaticInitializerException;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.reflection.Reflect;
@ -159,7 +159,7 @@ public final class EventHelper {
method.invoke(arguments);
} catch (UnexpectedThrowableException exception) {
logger.crash("Event listener method " + method.getName() + " could not be called as an error occurred during reflection", exception, true);
} catch (NoAccessException exception) {
} catch (NoReflectionAccessException exception) {
logger.warn("Event listener method " + method.getName() + " could not be called as the method could not be accessed");
} catch (InvalidMethodSignature exception) {
logger.warn("Event listener method " + method.getName() + " has an invalid method signature");

View file

@ -23,4 +23,4 @@
*
* @since v1-alpha0
*/
package de.staropensource.sosengine.base.implementable.helpers;
package de.staropensource.sosengine.base.implementable.helper;

View file

@ -17,13 +17,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.implementation;
package de.staropensource.sosengine.base.implementation.logging;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.implementable.LoggerImplementation;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.type.logging.LogLevel;
import de.staropensource.sosengine.base.utility.converter.EmptyShortcodeConverter;
import de.staropensource.sosengine.base.implementation.shortcode.EmptyShortcodeConverter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.logging.implementation;
package de.staropensource.sosengine.base.implementation.logging;
import de.staropensource.sosengine.base.implementable.LoggerImplementation;
import de.staropensource.sosengine.base.type.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.implementation;
package de.staropensource.sosengine.base.implementation.logging;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.implementable.LoggerImplementation;

View file

@ -22,4 +22,4 @@
*
* @since v1-alpha1
*/
package de.staropensource.sosengine.base.logging.implementation;
package de.staropensource.sosengine.base.implementation.logging;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.utility.converter;
package de.staropensource.sosengine.base.implementation.shortcode;
import de.staropensource.sosengine.base.implementable.ShortcodeParserSkeleton;
import de.staropensource.sosengine.base.exception.ParserException;

View file

@ -22,4 +22,4 @@
*
* @since v1-alpha1
*/
package de.staropensource.sosengine.base.utility.converter;
package de.staropensource.sosengine.base.implementation.shortcode;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;
import de.staropensource.sosengine.base.implementable.VersioningSystem;
import de.staropensource.sosengine.base.exception.versioning.IncompatibleVersioningSystemException;

View file

@ -23,4 +23,4 @@
*
* @since v1-alpha1
*/
package de.staropensource.sosengine.base.dataprovider.versioning;
package de.staropensource.sosengine.base.implementation.versioning;

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.events;
package de.staropensource.sosengine.base.internal.event;
import de.staropensource.sosengine.base.implementable.Event;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
/**
* Called when the engine is about to shutdown, after {@link de.staropensource.sosengine.base.event.EngineShutdownEvent}.

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.internal.events;
package de.staropensource.sosengine.base.internal.event;

View file

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

View file

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

View file

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

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
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.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.EngineInformation;
import de.staropensource.sosengine.base.utility.information.EngineInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
import org.jetbrains.annotations.NotNull;
/**

View file

@ -17,10 +17,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.dataprovider.information.JvmInformation;
import de.staropensource.sosengine.base.utility.information.JvmInformation;
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.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.utility.Math;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.type.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.type.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.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.internal.placeholders.logger;
package de.staropensource.sosengine.base.internal.implementation.placeholder.logger;
import de.staropensource.sosengine.base.implementable.Placeholder;
import org.jetbrains.annotations.NotNull;

View file

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

View file

@ -27,4 +27,4 @@
* @see de.staropensource.sosengine.base.implementable.Placeholder
* @since v1-alpha0
*/
package de.staropensource.sosengine.base.internal.placeholders;
package de.staropensource.sosengine.base.internal.implementation.placeholder;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.internal.reflection;
import de.staropensource.sosengine.base.exception.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exception.reflection.NoAccessException;
import de.staropensource.sosengine.base.exception.reflection.NoReflectionAccessException;
import de.staropensource.sosengine.base.reflection.ReflectionField;
import de.staropensource.sosengine.base.reflection.ReflectionMethod;
@ -67,11 +67,11 @@ public final class ReflectionAccessWidener {
* @param reflectionField {@link ReflectionField} to unlock
* @return updated modifiers. pass those to {@link #lockModifications(ReflectionField, int)} to lock the field again
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the field has been denied
* @throws NoReflectionAccessException if access to the field has been denied
* @see #lockModifications(ReflectionField, int)
* @since v1-alpha2
*/
public static int unlockModifications(ReflectionField reflectionField) throws UnexpectedThrowableException, NoAccessException {
public static int unlockModifications(ReflectionField reflectionField) throws UnexpectedThrowableException, NoReflectionAccessException {
int updatedModifiers = 0;
Field field = reflectionField.getField();
@ -92,7 +92,7 @@ public final class ReflectionAccessWidener {
try {
modifiersField.setInt(field, field.getModifiers() & ~updatedModifiers);
} catch (IllegalAccessException exception) {
throw new NoAccessException("field", field.getName());
throw new NoReflectionAccessException("field", field.getName());
}
return updatedModifiers;
@ -104,11 +104,11 @@ public final class ReflectionAccessWidener {
* @param reflectionMethod {@link ReflectionMethod} to unlock
* @return updated modifiers. pass those to {@link #lockModifications(ReflectionMethod, int)} to lock the method again
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the method has been denied
* @throws NoReflectionAccessException if access to the method has been denied
* @see #lockModifications(ReflectionMethod, int)
* @since v1-alpha2
*/
public static int unlockModifications(ReflectionMethod reflectionMethod) throws UnexpectedThrowableException, NoAccessException {
public static int unlockModifications(ReflectionMethod reflectionMethod) throws UnexpectedThrowableException, NoReflectionAccessException {
Method method = reflectionMethod.getMethod();
int updatedModifiers = method.getModifiers();
@ -136,7 +136,7 @@ public final class ReflectionAccessWidener {
try {
modifiersField.setInt(method, method.getModifiers() & ~updatedModifiers);
} catch (IllegalAccessException exception) {
throw new NoAccessException("method", method.getName());
throw new NoReflectionAccessException("method", method.getName());
}
return updatedModifiers;
@ -148,11 +148,11 @@ public final class ReflectionAccessWidener {
* @param reflectionField {@link ReflectionField} to lock
* @param updatedModifiers original modifiers
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the field has been denied
* @throws NoReflectionAccessException if access to the field has been denied
* @see #unlockModifications(ReflectionField)
* @since v1-alpha2
*/
public static void lockModifications(ReflectionField reflectionField, int updatedModifiers) throws UnexpectedThrowableException, NoAccessException {
public static void lockModifications(ReflectionField reflectionField, int updatedModifiers) throws UnexpectedThrowableException, NoReflectionAccessException {
Field field = reflectionField.getField();
Field modifiersField;
@ -167,7 +167,7 @@ public final class ReflectionAccessWidener {
try {
modifiersField.setInt(field, field.getModifiers() & ~updatedModifiers);
} catch (IllegalAccessException exception) {
throw new NoAccessException("field", field.getName());
throw new NoReflectionAccessException("field", field.getName());
}
modifiersField.setAccessible(false);
@ -179,11 +179,11 @@ public final class ReflectionAccessWidener {
* @param reflectionMethod {@link ReflectionMethod} to lock
* @param updatedModifiers original modifiers
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the method has been denied
* @throws NoReflectionAccessException if access to the method has been denied
* @see #unlockModifications(ReflectionMethod)
* @since v1-alpha2
*/
public static void lockModifications(ReflectionMethod reflectionMethod, int updatedModifiers) throws UnexpectedThrowableException, NoAccessException {
public static void lockModifications(ReflectionMethod reflectionMethod, int updatedModifiers) throws UnexpectedThrowableException, NoReflectionAccessException {
Method method = reflectionMethod.getMethod();
Field modifiersField;
@ -198,7 +198,7 @@ public final class ReflectionAccessWidener {
try {
modifiersField.setInt(method, method.getModifiers() & ~updatedModifiers);
} catch (IllegalAccessException exception) {
throw new NoAccessException("method", method.getName());
throw new NoReflectionAccessException("method", method.getName());
}
modifiersField.setAccessible(false);

View file

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

View file

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

View file

@ -23,4 +23,4 @@
*
* @since v1-alpha1
*/
package de.staropensource.sosengine.base.internal.types;
package de.staropensource.sosengine.base.internal.type;

View file

@ -24,7 +24,7 @@ import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.event.EngineCrashEvent;
import de.staropensource.sosengine.base.event.EngineSoftCrashEvent;
import de.staropensource.sosengine.base.internal.placeholders.crashhandler.*;
import de.staropensource.sosengine.base.internal.implementation.placeholder.crashhandler.*;
import de.staropensource.sosengine.base.type.EngineState;
import de.staropensource.sosengine.base.type.logging.LogLevel;
import de.staropensource.sosengine.base.utility.PlaceholderEngine;

View file

@ -20,7 +20,7 @@
package de.staropensource.sosengine.base.logging;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.internal.placeholders.logger.LogPath;
import de.staropensource.sosengine.base.internal.implementation.placeholder.logger.LogPath;
import de.staropensource.sosengine.base.type.logging.LogLevel;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ -67,7 +67,7 @@ public final class InitLogger {
// Replace placeholders
// This is done manually to avoid depending on PlaceholderEngine
base = new de.staropensource.sosengine.base.internal.placeholders.logger.LogLevel(level).replace(base);
base = new de.staropensource.sosengine.base.internal.implementation.placeholder.logger.LogLevel(level).replace(base);
base = new LogPath(issuerClass).replace(base);
base = base.replace("%log_message%", message.replace("\n", ""));

View file

@ -22,17 +22,17 @@ package de.staropensource.sosengine.base.logging;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.EngineConfiguration;
import de.staropensource.sosengine.base.implementable.LoggerImplementation;
import de.staropensource.sosengine.base.implementable.helpers.EventHelper;
import de.staropensource.sosengine.base.implementable.helper.EventHelper;
import de.staropensource.sosengine.base.event.LogEvent;
import de.staropensource.sosengine.base.internal.placeholders.logger.*;
import de.staropensource.sosengine.base.internal.types.QueuedLogMessage;
import de.staropensource.sosengine.base.logging.implementation.PlainLoggerImplementation;
import de.staropensource.sosengine.base.internal.implementation.placeholder.logger.*;
import de.staropensource.sosengine.base.internal.type.QueuedLogMessage;
import de.staropensource.sosengine.base.implementation.logging.PlainLoggerImplementation;
import de.staropensource.sosengine.base.type.EngineState;
import de.staropensource.sosengine.base.type.logging.LogLevel;
import de.staropensource.sosengine.base.type.logging.LogRule;
import de.staropensource.sosengine.base.type.logging.LogRuleType;
import de.staropensource.sosengine.base.utility.PlaceholderEngine;
import de.staropensource.sosengine.base.utility.converter.EmptyShortcodeConverter;
import de.staropensource.sosengine.base.implementation.shortcode.EmptyShortcodeConverter;
import lombok.Getter;
import lombok.Setter;
import org.jetbrains.annotations.NotNull;
@ -205,7 +205,7 @@ public final class Logger {
// Replace logger placeholders (no colors)
format = new LogClass(issuerClass).replace(format);
format = new de.staropensource.sosengine.base.internal.placeholders.logger.LogLevel(level).replace(format);
format = new de.staropensource.sosengine.base.internal.implementation.placeholder.logger.LogLevel(level).replace(format);
format = new LogMetadata(issuerMetadata).replace(format);
format = new LogOrigin(issuerOrigin).replace(format);
format = new LogPackage(issuerClass).replace(format);

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.reflection;
import de.staropensource.sosengine.base.exception.UnexpectedCheckEndException;
import de.staropensource.sosengine.base.exception.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exception.reflection.NoAccessException;
import de.staropensource.sosengine.base.exception.reflection.NoReflectionAccessException;
import de.staropensource.sosengine.base.internal.reflection.ReflectionAccessWidener;
import de.staropensource.sosengine.base.type.reflection.VisibilityModifier;
import lombok.Getter;
@ -159,10 +159,10 @@ public final class ReflectionField {
*
* @param newValue new presence of the {@code final} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setFinal(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setFinal(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isFinal() == newValue)
return;
@ -182,7 +182,7 @@ public final class ReflectionField {
try {
modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.FINAL);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -194,10 +194,10 @@ public final class ReflectionField {
*
* @param newValue new presence of the {@code static} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setStatic(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setStatic(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isStatic() == newValue)
return;
@ -217,7 +217,7 @@ public final class ReflectionField {
try {
modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.STATIC);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -229,10 +229,10 @@ public final class ReflectionField {
*
* @param newValue new presence of the {@code transient} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setTransient(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setTransient(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isTransient() == newValue)
return;
@ -252,7 +252,7 @@ public final class ReflectionField {
try {
modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.TRANSIENT);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -264,10 +264,10 @@ public final class ReflectionField {
*
* @param newValue new presence of the {@code volatile} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setVolatile(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setVolatile(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isVolatile() == newValue)
return;
@ -287,7 +287,7 @@ public final class ReflectionField {
try {
modifiersField.setInt(field, modifiersField.getInt(field) & ~Modifier.VOLATILE);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -341,14 +341,14 @@ public final class ReflectionField {
* Updates the field with a new value.
*
* @param newValue new value
* @throws NoAccessException if access to the field has been denied
* @throws NoReflectionAccessException if access to the field has been denied
* @since v1-alpha2
*/
public void setValue(Object newValue) throws NoAccessException {
public void setValue(Object newValue) throws NoReflectionAccessException {
try {
field.set(parentClass, newValue);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", getName());
throw new NoReflectionAccessException("field", getName());
}
}
@ -356,14 +356,14 @@ public final class ReflectionField {
* Updates the field with a new value.
*
* @return field's value
* @throws NoAccessException if access to the field has been denied
* @throws NoReflectionAccessException if access to the field has been denied
* @since v1-alpha2
*/
public Object getValue() throws NoAccessException {
public Object getValue() throws NoReflectionAccessException {
try {
return field.get(parentClass);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", getName());
throw new NoReflectionAccessException("field", getName());
}
}
}

View file

@ -23,7 +23,7 @@ import de.staropensource.sosengine.base.exception.UnexpectedCheckEndException;
import de.staropensource.sosengine.base.exception.UnexpectedThrowableException;
import de.staropensource.sosengine.base.exception.reflection.InstanceMethodFromStaticContextException;
import de.staropensource.sosengine.base.exception.reflection.InvalidMethodSignature;
import de.staropensource.sosengine.base.exception.reflection.NoAccessException;
import de.staropensource.sosengine.base.exception.reflection.NoReflectionAccessException;
import de.staropensource.sosengine.base.exception.reflection.StaticInitializerException;
import de.staropensource.sosengine.base.internal.reflection.ReflectionAccessWidener;
import de.staropensource.sosengine.base.type.reflection.VisibilityModifier;
@ -163,10 +163,10 @@ public final class ReflectionMethod {
*
* @param newValue new presence of the {@code final} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setFinal(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setFinal(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isFinal() == newValue)
return;
@ -186,7 +186,7 @@ public final class ReflectionMethod {
try {
modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.FINAL);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -198,10 +198,10 @@ public final class ReflectionMethod {
*
* @param newValue new presence of the {@code static} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setStatic(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setStatic(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isStatic() == newValue)
return;
@ -221,7 +221,7 @@ public final class ReflectionMethod {
try {
modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.STATIC);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -233,10 +233,10 @@ public final class ReflectionMethod {
*
* @param newValue new presence of the {@code abstract} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setAbstract(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setAbstract(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isAbstract() == newValue)
return;
@ -256,7 +256,7 @@ public final class ReflectionMethod {
try {
modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.ABSTRACT);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -268,10 +268,10 @@ public final class ReflectionMethod {
*
* @param newValue new presence of the {@code synchronized} modifier
* @throws UnexpectedThrowableException if the {@code modifiers} field is missing
* @throws NoAccessException if access to the {@code modifiers} field has been denied
* @throws NoReflectionAccessException if access to the {@code modifiers} field has been denied
* @since v1-alpha2
*/
public void setSynchronized(boolean newValue) throws UnexpectedThrowableException, NoAccessException {
public void setSynchronized(boolean newValue) throws UnexpectedThrowableException, NoReflectionAccessException {
// Don't do anything if the new value already matches the current value
if (isSynchronized() == newValue)
return;
@ -291,7 +291,7 @@ public final class ReflectionMethod {
try {
modifiersField.setInt(method, modifiersField.getInt(method) & ~Modifier.SYNCHRONIZED);
} catch (IllegalAccessException e) {
throw new NoAccessException("field", "modifiers");
throw new NoReflectionAccessException("field", "modifiers");
}
// Lock modifications
@ -348,14 +348,14 @@ public final class ReflectionMethod {
* @param args arguments to pass
* @return method return value
* @throws UnexpectedThrowableException if the {@code modifiers} field could not be found
* @throws NoAccessException if access to the method has been denied
* @throws NoReflectionAccessException if access to the method has been denied
* @throws InvalidMethodSignature if the method signature is incorrect
* @throws InvocationTargetException covers exceptions thrown by the method
* @throws InstanceMethodFromStaticContextException when the target method is non-static and called from a static context
* @throws StaticInitializerException when an the static initializer fails
* @since v1-alpha2
*/
public @Nullable Object invoke(Object... args) throws UnexpectedThrowableException, NoAccessException, InvalidMethodSignature, InvocationTargetException, InstanceMethodFromStaticContextException, StaticInitializerException {
public @Nullable Object invoke(Object... args) throws UnexpectedThrowableException, NoReflectionAccessException, InvalidMethodSignature, InvocationTargetException, InstanceMethodFromStaticContextException, StaticInitializerException {
Object returnValue;
// Allow access to method
@ -366,7 +366,7 @@ public final class ReflectionMethod {
returnValue = method.invoke(parentClass, args);
} catch (IllegalAccessException exception) {
//ReflectionAccessWidener.lockModifications(this, updatedModifiers); // Lock method before throwing exception
throw new NoAccessException("method", getName());
throw new NoReflectionAccessException("method", getName());
} catch (IllegalArgumentException exception) {
throw new InvalidMethodSignature(getName());
} catch (NullPointerException exception) {

View file

@ -19,7 +19,7 @@
package de.staropensource.sosengine.base.type;
import de.staropensource.sosengine.base.dataprovider.versioning.StarOpenSourceVersioningSystem;
import de.staropensource.sosengine.base.implementation.versioning.StarOpenSourceVersioningSystem;
/**
* Provides all available version types specified in the StarOpenSource Versioning System v2.

View file

@ -21,7 +21,7 @@ package de.staropensource.sosengine.base.utility;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.implementable.Placeholder;
import de.staropensource.sosengine.base.internal.placeholders.*;
import de.staropensource.sosengine.base.internal.implementation.placeholder.*;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;

View file

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

View file

@ -17,13 +17,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.staropensource.sosengine.base.dataprovider.information;
package de.staropensource.sosengine.base.utility.information;
import de.staropensource.sosengine.base.Engine;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import de.staropensource.sosengine.base.type.VersionType;
import de.staropensource.sosengine.base.utility.PropertiesReader;
import de.staropensource.sosengine.base.utility.parser.StackTraceParser;
import de.staropensource.sosengine.base.utility.StackTraceParser;
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.dataprovider.information;
package de.staropensource.sosengine.base.utility.information;
import de.staropensource.sosengine.base.logging.LoggerInstance;
import org.jetbrains.annotations.NotNull;

View file

@ -22,4 +22,4 @@
*
* @since v1-alpha0
*/
package de.staropensource.sosengine.base.dataprovider.information;
package de.staropensource.sosengine.base.utility.information;

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