Class MemoryClassPathElement

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

public class MemoryClassPathElement extends AbstractClassPathElement
  • Constructor Details

    • MemoryClassPathElement

      public MemoryClassPathElement(Map<String,byte[]> resources, boolean runtime)
  • Method Details

    • isRuntime

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

      public void reset(Map<String,byte[]> resources)
    • getRoot

      public Path getRoot()
      Returns:
      The element root, or null if not applicable
    • apply

      public <T> T apply(Function<OpenPathTree,T> func)
      Description copied from interface: ClassPathElement
      Processes the content of this classpath element and returns a result.
      Type Parameters:
      T - result type
      Parameters:
      func - content processing function
      Returns:
      processing result
    • 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.
      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.
      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.
    • getProtectionDomain

      public ProtectionDomain getProtectionDomain()
      Returns:
      The protection domain that should be used to define classes from this element
    • close

      public void close() throws IOException
      Throws:
      IOException