-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove
for-removal
deprecated fields
- Loading branch information
1 parent
9fef208
commit 9f69cf5
Showing
4 changed files
with
4 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 1 addition & 73 deletions
74
...in/java/pw/mihou/nexus/features/command/interceptors/facades/NexusCommandInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,3 @@ | ||
package pw.mihou.nexus.features.command.interceptors.facades; | ||
|
||
import pw.mihou.nexus.Nexus; | ||
import pw.mihou.nexus.core.assignment.NexusUuidAssigner; | ||
import pw.mihou.nexus.features.command.interceptors.core.NexusCommandInterceptorCore; | ||
|
||
public interface NexusCommandInterceptor { | ||
|
||
/** | ||
* Creates an anonymous middleware where the name of the middleware is generated randomly | ||
* by the framework at runtime. | ||
* | ||
* @param middleware The middleware functionality. | ||
* @return The name of the middleware to generated. | ||
* @see Nexus#getInterceptors | ||
*/ | ||
@Deprecated(forRemoval = true) | ||
static String middleware(NexusMiddleware middleware) { | ||
return Nexus.getInterceptors().middleware(middleware); | ||
} | ||
|
||
/** | ||
* Creates an anonymous afterware where the name of the middleware is generated randomly | ||
* by the framework at runtime. | ||
* | ||
* @param afterware The afterware functionality. | ||
* @return The name of the afterware to generated. | ||
* @see Nexus#getInterceptors | ||
*/ | ||
@Deprecated(forRemoval = true) | ||
static String afterware(NexusAfterware afterware) { | ||
return Nexus.getInterceptors().afterware(afterware); | ||
|
||
} | ||
|
||
/** | ||
* Adds the middleware into the command interceptor storage. | ||
* | ||
* @param name The name of the middleware to add. | ||
* @param middleware The middleware functionality. | ||
* @return The name of the middleware for quick-use. | ||
* @see Nexus#getInterceptors | ||
*/ | ||
@Deprecated(forRemoval = true) | ||
static String addMiddleware(String name, NexusMiddleware middleware) { | ||
return Nexus.getInterceptors().middleware(name, middleware); | ||
} | ||
|
||
/** | ||
* Adds the afterware into the command interceptor storage. | ||
* | ||
* @param name The name of the afterware to add. | ||
* @param afterware The afterware functionality. | ||
* @return The name of the afterware for quick-use. | ||
* @see Nexus#getInterceptors | ||
*/ | ||
@Deprecated(forRemoval = true) | ||
static String addAfterware(String name, NexusAfterware afterware) { | ||
return Nexus.getInterceptors().afterware(name, afterware); | ||
|
||
} | ||
|
||
/** | ||
* Adds a repository of command interceptors to the command interceptor | ||
* storage. | ||
* | ||
* @param repository The repository to add. | ||
* @see Nexus#getInterceptors | ||
*/ | ||
@Deprecated(forRemoval = true) | ||
static void addRepository(NexusInterceptorRepository repository) { | ||
Nexus.getInterceptors().add(repository); | ||
} | ||
|
||
} | ||
public interface NexusCommandInterceptor {} |
38 changes: 0 additions & 38 deletions
38
...java/pw/mihou/nexus/features/command/interceptors/facades/NexusInterceptorRepository.java
This file was deleted.
Oops, something went wrong.