-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from tvd12/master
add AddCommand command
- Loading branch information
Showing
4 changed files
with
44 additions
and
13 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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/tvd12/ezyfox/core/command/AddCommand.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* | ||
*/ | ||
package com.tvd12.ezyfox.core.command; | ||
|
||
import com.tvd12.ezyfox.core.content.AppContext; | ||
|
||
/** | ||
* Execute this command to add a command class to the application context | ||
* | ||
* @author tavandung12 | ||
* | ||
*/ | ||
public interface AddCommand { | ||
|
||
/** | ||
* Add the command class to the application context | ||
* | ||
* @param baseClass the interface or abstract class | ||
* @param implementation the implementation class | ||
* @return the AppContext pointer for chaining | ||
*/ | ||
AppContext add(Class<?> baseClass, Class<?> implementation); | ||
|
||
} |
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