Interface LocationTrackingSpecFactory

All Superinterfaces:
ExtensionPoint

public interface LocationTrackingSpecFactory extends ExtensionPoint
A discoverable factory of tracking specifications
  • Method Details

    • fromConfigName

      static LocationTrackingSpec fromConfigName(String name)
      Get the specification for the given configuration name
      Parameters:
      name - the name
      Returns:
      the spec, or null
    • allSuggested

      static Map<String,LocationTrackingSpec> allSuggested(PluginTool tool)
      Get a copy of all the known specifications
      Parameters:
      tool - the plugin tool or context
      Returns:
      the specifications by configuration name
    • getSuggested

      List<LocationTrackingSpec> getSuggested(PluginTool tool)
      Get all the specifications currently suggested by this factory
      Parameters:
      tool - the plugin tool or context
      Returns:
      the list of suggested specifications
    • parseSpec

      LocationTrackingSpec parseSpec(String name)
      Attempt to parse the given configuration name as a specification
      Parameters:
      name - the configuration name, usually including a prefix unique to each factory
      Returns:
      the specification, or null if this factory cannot parse it