Skip to content

Commit

Permalink
Move a number of internal use plugin classes into the services package
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Oct 14, 2024
1 parent 50bd056 commit d5898f5
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import jakarta.enterprise.context.spi.CreationalContext;
import jakarta.enterprise.inject.spi.*;
import jakarta.inject.Inject;
import software.coley.recaf.plugin.AllocationException;
import software.coley.recaf.plugin.ClassAllocator;

import java.util.IdentityHashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import software.coley.recaf.plugin.PluginSource;
import software.coley.recaf.util.io.ByteSource;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.Plugin;

/**
* Object that holds reference to a plugin and it's information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.Plugin;
import software.coley.recaf.plugin.PluginContainer;
import software.coley.recaf.plugin.PluginInfo;

/**
* Plugin container implementation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

/**
* Exception thrown when action involving plugins fail.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.Plugin;
import software.coley.recaf.plugin.PluginInformation;

import java.util.Set;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import software.coley.recaf.services.plugin.PluginException;
import software.coley.recaf.services.plugin.PreparedPlugin;
import software.coley.recaf.util.io.ByteSource;

/**
* The plugin loader.
* This interface is responsible for loading plugins from different sources.
* The plugin loader is responsible for loading plugins from different sources.
*
* @author xDark
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.coley.recaf.plugin;
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nullable;
import software.coley.recaf.util.io.ByteSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.plugin.PluginInfo;

import java.util.stream.Stream;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package software.coley.recaf.services.plugin;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginContainer;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.plugin.PluginInfo;
import software.coley.recaf.plugin.PluginSource;
import software.coley.recaf.services.plugin.discovery.DiscoveredPluginSource;
import software.coley.recaf.services.plugin.discovery.PluginDiscoverer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package software.coley.recaf.services.plugin.discovery;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginException;

import java.io.IOException;
import java.nio.file.Files;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package software.coley.recaf.services.plugin.discovery;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginException;
import software.coley.recaf.util.io.ByteSources;

import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package software.coley.recaf.services.plugin.discovery;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginException;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import software.coley.lljzip.ZipIO;
import software.coley.lljzip.format.model.ZipArchive;
import software.coley.recaf.plugin.*;
import software.coley.recaf.services.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginInfo;
import software.coley.recaf.services.plugin.PluginLoader;
import software.coley.recaf.services.plugin.PreparedPlugin;
import software.coley.recaf.util.IOUtil;
import software.coley.recaf.util.io.ByteSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package software.coley.recaf.services.plugin.zip;

import jakarta.annotation.Nonnull;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.plugin.PluginInfo;
import software.coley.recaf.plugin.PluginSource;
import software.coley.recaf.services.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginInfo;
import software.coley.recaf.services.plugin.PluginSource;
import software.coley.recaf.services.plugin.PreparedPlugin;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import jakarta.annotation.Nonnull;
import software.coley.lljzip.format.model.LocalFileHeader;
import software.coley.recaf.plugin.PluginSource;
import software.coley.recaf.services.plugin.PluginSource;
import software.coley.recaf.util.io.ByteSource;
import software.coley.recaf.util.io.LocalFileHeaderSource;

Expand Down
4 changes: 2 additions & 2 deletions recaf-ui/src/main/java/software/coley/recaf/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import software.coley.recaf.launch.LaunchArguments;
import software.coley.recaf.launch.LaunchCommand;
import software.coley.recaf.launch.LaunchHandler;
import software.coley.recaf.plugin.PluginContainer;
import software.coley.recaf.plugin.PluginException;
import software.coley.recaf.services.plugin.PluginContainer;
import software.coley.recaf.services.plugin.PluginException;
import software.coley.recaf.services.file.RecafDirectoriesConfig;
import software.coley.recaf.services.plugin.PluginManager;
import software.coley.recaf.services.plugin.discovery.DirectoryPluginDiscoverer;
Expand Down

0 comments on commit d5898f5

Please sign in to comment.