Interface ImplementationInterface


  • public interface ImplementationInterface
    Methods that are specific to a certain implementation of PermissionsEx (Sponge, Forge, etc)
    • 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 specifier url.

        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
      • version

        String version()
        Return the version number attached to this implementation of PEX
        Returns:
        The currently running version