Class FactoryPidParser

java.lang.Object
org.codice.felix.cm.file.FactoryPidParser

public class FactoryPidParser extends Object
  • Constructor Details

    • FactoryPidParser

      public FactoryPidParser()
  • Method Details

    • parseFactoryParts

      public static Optional<FactoryPidParser.ParsedFactoryPid> parseFactoryParts(String pid)
      Attempt to parse a service PID into a factory PID and a service name, following the conventions used by Felix's ConfigurationAdmin.
      Parameters:
      pid - the service PID to parse
      Returns:
      an Optional containing the parsed parts, if the PID is a factory PID. If the PID is not a factory PID, then an empty Optional is returned.