Class FilteredClassPathElement

java.lang.Object
io.quarkus.bootstrap.classloading.FilteredClassPathElement
All Implemented Interfaces:
ClassPathElement, Closeable, AutoCloseable

public class FilteredClassPathElement extends Object implements ClassPathElement
  • Constructor Details

  • Method Details

    • getResolvedDependency

      public io.quarkus.maven.dependency.ResolvedDependency getResolvedDependency()
      Description copied from interface: ClassPathElement
      If this classpath element represents a Maven artifact, the method will return it, otherwise - null.
      Specified by:
      getResolvedDependency in interface ClassPathElement
      Returns:
      the Maven artifact this classpath element represents or null, in case this element does not represent any Maven artifact
    • isRuntime

      public boolean isRuntime()
      Description copied from interface: ClassPathElement
      Checks whether this is a runtime classpath element
      Specified by:
      isRuntime in interface ClassPathElement
      Returns:
      true in case this is a runtime classpath element, otherwise - false
    • apply

      public <T> T apply(Function<io.quarkus.paths.OpenPathTree,T> func)
      Description copied from interface: ClassPathElement
      Processes the content of this classpath element and returns a result.
      Specified by:
      apply in interface ClassPathElement
      Type Parameters:
      T - result type
      Parameters:
      func - content processing function
      Returns:
      processing result
    • getRoot

      public Path getRoot()
      Specified by:
      getRoot in interface ClassPathElement
      Returns:
      The element root, or null if not applicable
    • getResource

      public ClassPathResource getResource(String name)
      Description copied from interface: ClassPathElement
      Loads a resource from the class path element, or null if it does not exist.
      Specified by:
      getResource in interface ClassPathElement
      Parameters:
      name - The resource to load
      Returns:
      An representation of the class path resource if it exists
    • getProvidedResources

      public Set<String> getProvidedResources()
      Description copied from interface: ClassPathElement
      Returns a set of all known resources.
      Specified by:
      getProvidedResources in interface ClassPathElement
      Returns:
      A set representing all known resources
    • containsReloadableResources

      public boolean containsReloadableResources()
      Description copied from interface: ClassPathElement
      Whether this class path element contains resources that can be reloaded in dev mode.
      Specified by:
      containsReloadableResources in interface ClassPathElement
    • getProtectionDomain

      public ProtectionDomain getProtectionDomain()
      Specified by:
      getProtectionDomain in interface ClassPathElement
      Returns:
      The protection domain that should be used to define classes from this element
    • getManifestAttributes

      public io.quarkus.paths.ManifestAttributes getManifestAttributes()
      Specified by:
      getManifestAttributes in interface ClassPathElement
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException