Class MemoryClassPathElement

    • Constructor Detail

      • MemoryClassPathElement

        public MemoryClassPathElement​(Map<String,​byte[]> resources)
    • Method Detail

      • reset

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

        public Path getRoot()
        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.
        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
      • getProtectionDomain

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