/** * Construct a nar class loader with the specific parent. * * @param narWorkingDirectory directory to explode nar contents to * @param parentClassLoader parent class loader of this nar * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory, final ClassLoader parentClassLoader) throws ClassNotFoundException, IOException { super(new URL[0], parentClassLoader); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }
/** * Construct a nar class loader. * * @param narWorkingDirectory directory to explode nar contents to * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory) throws ClassNotFoundException, IOException { super(new URL[0]); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }
/** * Construct a nar class loader. * * @param narWorkingDirectory directory to explode nar contents to * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory) throws ClassNotFoundException, IOException { super(new URL[0]); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }
/** * Construct a nar class loader with the specific parent. * * @param narWorkingDirectory directory to explode nar contents to * @param parentClassLoader parent class loader of this nar * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory, final ClassLoader parentClassLoader) throws ClassNotFoundException, IOException { super(new URL[0], parentClassLoader); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }
/** * Construct a nar class loader. * * @param narWorkingDirectory directory to explode nar contents to * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory) throws ClassNotFoundException, IOException { super(new URL[0]); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }
/** * Construct a nar class loader with the specific parent. * * @param narWorkingDirectory directory to explode nar contents to * @param parentClassLoader parent class loader of this nar * @throws IllegalArgumentException if the NAR is missing the Java Services * API file for <tt>FlowFileProcessor</tt> implementations. * @throws ClassNotFoundException if any of the <tt>FlowFileProcessor</tt> * implementations defined by the Java Services API cannot be loaded. * @throws IOException if an error occurs while loading the NAR. */ public NarClassLoader(final File narWorkingDirectory, final ClassLoader parentClassLoader) throws ClassNotFoundException, IOException { super(new URL[0], parentClassLoader); this.narWorkingDirectory = narWorkingDirectory; // process the classpath updateClasspath(narWorkingDirectory); }