Class SimpleThrowawayClassLoader


  • public class SimpleThrowawayClassLoader
    extends OverridingClassLoader
    ClassLoader that can be used to load classes without bringing them into the parent loader. Intended to support JPA "temp class loader" requirement, but not JPA-specific.
    Since:
    2.0
    Author:
    Rod Johnson
    • Constructor Detail

      • SimpleThrowawayClassLoader

        public SimpleThrowawayClassLoader​(@Nullable
                                          ClassLoader parent)
        Create a new SimpleThrowawayClassLoader for the given ClassLoader.
        Parameters:
        parent - the ClassLoader to build a throwaway ClassLoader for