@Singleton
public class PageFactory
extends java.lang.Object
Page
objects.Constructor and Description |
---|
PageFactory(dagger.Lazy<VersionChecker> versionChecker,
dagger.Lazy<PlanFiles> files,
dagger.Lazy<PlanConfig> config,
dagger.Lazy<Locale> locale,
dagger.Lazy<Theme> theme,
dagger.Lazy<DBSystem> dbSystem,
dagger.Lazy<ServerInfo> serverInfo,
dagger.Lazy<Formatters> formatters,
dagger.Lazy<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger,
dagger.Lazy<com.djrapitops.plugin.benchmarking.Timings> timings,
dagger.Lazy<ErrorLogger> errorLogger) |
Modifier and Type | Method and Description |
---|---|
DebugPage |
debugPage() |
Page |
errorPage(Icon icon,
java.lang.String title,
java.lang.String error) |
Page |
errorPage(java.lang.String title,
java.lang.String error) |
java.lang.String |
getResource(java.lang.String name) |
PlayerPluginTab |
inspectPluginTabs(java.util.UUID playerUUID) |
Page |
internalErrorPage(java.lang.String message,
java.lang.Throwable error) |
Page |
loginPage() |
NetworkPage |
networkPage() |
PlayerPage |
playerPage(java.util.UUID playerUUID) |
PlayersPage |
playersPage() |
Page |
registerPage() |
Page |
serverPage(java.util.UUID serverUUID)
Create a server page.
|
@Inject public PageFactory(dagger.Lazy<VersionChecker> versionChecker, dagger.Lazy<PlanFiles> files, dagger.Lazy<PlanConfig> config, dagger.Lazy<Locale> locale, dagger.Lazy<Theme> theme, dagger.Lazy<DBSystem> dbSystem, dagger.Lazy<ServerInfo> serverInfo, dagger.Lazy<Formatters> formatters, dagger.Lazy<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger, dagger.Lazy<com.djrapitops.plugin.benchmarking.Timings> timings, dagger.Lazy<ErrorLogger> errorLogger)
public DebugPage debugPage() throws java.io.IOException
java.io.IOException
public PlayersPage playersPage() throws java.io.IOException
java.io.IOException
public Page serverPage(java.util.UUID serverUUID) throws java.io.IOException
serverUUID
- UUID of the serverPage
that matches the server page.NotFoundException
- If the server can not be found in the database.java.io.IOException
- If the template files can not be read.public PlayerPage playerPage(java.util.UUID playerUUID) throws java.io.IOException
java.io.IOException
public PlayerPluginTab inspectPluginTabs(java.util.UUID playerUUID)
public NetworkPage networkPage() throws java.io.IOException
java.io.IOException
public Page internalErrorPage(java.lang.String message, java.lang.Throwable error)
public Page errorPage(java.lang.String title, java.lang.String error) throws java.io.IOException
java.io.IOException
public Page errorPage(Icon icon, java.lang.String title, java.lang.String error) throws java.io.IOException
java.io.IOException
public java.lang.String getResource(java.lang.String name) throws java.io.IOException
java.io.IOException
public Page loginPage() throws java.io.IOException
java.io.IOException
public Page registerPage() throws java.io.IOException
java.io.IOException