-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 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
33 changes: 33 additions & 0 deletions
33
...ruti/velocityplayerlistquery/service/serverpingprocessor/ServerPingProcessorRegistry.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,33 @@ | ||
package voruti.velocityplayerlistquery.service.serverpingprocessor; | ||
|
||
import lombok.Value; | ||
import lombok.experimental.Accessors; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
import java.util.List; | ||
|
||
@Singleton | ||
@Value | ||
@Accessors(fluent = true) | ||
public class ServerPingProcessorRegistry { | ||
|
||
List<ServerPingProcessor> serverPingProcessorList; | ||
|
||
|
||
@Inject | ||
public ServerPingProcessorRegistry( | ||
FillMissingVersionInfoServerPingProcessor fillMissingVersionInfoServerPingProcessor, | ||
MaxPlayerCountServerPingProcessor maxPlayerCountServerPingProcessor, | ||
OnlinePlayerCountServerPingProcessor onlinePlayerCountServerPingProcessor, | ||
PlayerListServerPingProcessor playerListServerPingProcessor, | ||
ReplaceVersionInfoServerPingProcessor replaceVersionInfoServerPingProcessor) { | ||
this.serverPingProcessorList = List.of( | ||
fillMissingVersionInfoServerPingProcessor, | ||
maxPlayerCountServerPingProcessor, | ||
onlinePlayerCountServerPingProcessor, | ||
playerListServerPingProcessor, | ||
replaceVersionInfoServerPingProcessor | ||
); | ||
} | ||
} |