Interface PlatformLocator


  • public interface PlatformLocator
    Provides information to a plug-in developer on where data shall be stored on server side.
    Since:
    2.1.0
    • Method Detail

      • getWorkspaceLocation

        File getWorkspaceLocation()
        Returns the directory in the server file system where data shall be stored. The directory is guaranteed to exist once this method is called.

        Note that plug-in developers are recommended to store their data in the directory returned by getStateLocation(Bundle).

        Returns:
        the workspace location.
        See Also:
        Options.OPTION_WORKSPACE_LOCATION, getStateLocation(Bundle)
      • getStateLocation

        File getStateLocation​(org.osgi.framework.Bundle bundle)
        Returns the directory in the server file system where data related to the specified plug-in shall be stored. The directory is guaranteed to exist once this method is called.
        Parameters:
        bundle - the plug-in for which data is to be stored.
        Returns:
        the directory where to store plug-in data.