Interface ImplementationInterface
-
public interface ImplementationInterface
Methods that are specific to a certain implementation of PermissionsEx (Sponge, Forge, etc)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExecutorasyncExecutor()Get an executor to run tasks asynchronously on.default PathbaseDirectory()Return the base directory to store any additional configuration files in.PathbaseDirectory(BaseDirectoryScope scope)Return the base directory for storing various types of files, depending on the scope@Nullable DataSourcedataSourceForUrl(String url)Returns an appropriate data source for the implementation-dependent specifierurl.org.slf4j.Loggerlogger()Gets the appropriate loggerStringversion()Return the version number attached to this implementation of PEX
-
-
-
Method Detail
-
baseDirectory
default Path baseDirectory()
Return the base directory to store any additional configuration files in.- Returns:
- The base directory
-
baseDirectory
Path baseDirectory(BaseDirectoryScope scope)
Return the base directory for storing various types of files, depending on the scope- Parameters:
scope- The scope to find the base directory for- Returns:
- An appropriate path
-
logger
org.slf4j.Logger logger()
Gets the appropriate logger- Returns:
- The base logger
-
dataSourceForUrl
@Nullable DataSource dataSourceForUrl(String url) throws SQLException
Returns an appropriate data source for the implementation-dependent specifierurl.Implementations may allow this url to be an alias to an existing connection definition, rather than an actual URL.
- Parameters:
url- The specifier to get a data source for- Returns:
- The appropriate data source, or null if not supported
- Throws:
SQLException- If a connection to the provided database cannot be established
-
asyncExecutor
Executor asyncExecutor()
Get an executor to run tasks asynchronously on.- Returns:
- The async executor
-
-