Class BasicPath

java.lang.Object
org.jboss.shrinkwrap.impl.base.path.BasicPath
All Implemented Interfaces:
Comparable<ArchivePath>, ArchivePath

public class BasicPath extends Object implements ArchivePath, Comparable<ArchivePath>
A Path which may be optionally prefixed with some common namespace context at construction time. Thread-safe.
Version:
$Revision: $
  • Field Details

    • log

      private static final Logger log
      Logger
    • context

      private final String context
      The context which this path represents; immutable so we're thread-safe.
  • Constructor Details

    • BasicPath

      public BasicPath()
      Creates a new Path representing the root context
    • BasicPath

      public BasicPath(String context)
      Creates a new Path with the specified context
      Parameters:
      context - The context which this path represents. Null or blank represents the root. Relative paths will be adjusted to absolute form.
    • BasicPath

      public BasicPath(ArchivePath basePath, ArchivePath context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath -
      context -
    • BasicPath

      public BasicPath(ArchivePath basePath, String context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath -
      context -
    • BasicPath

      public BasicPath(String basePath, ArchivePath context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath -
      context -
    • BasicPath

      public BasicPath(String basePath, String context)
      Creates a new Path using the specified base and specified relative context.
      Parameters:
      basePath -
      context -
  • Method Details