public NamedSPILoader(Class<S> clazz, ClassLoader classloader) { this.clazz = clazz; // if clazz' classloader is not a parent of the given one, we scan clazz's classloader, too: final ClassLoader clazzClassloader = clazz.getClassLoader(); if (classloader == null) { classloader = clazzClassloader; } if (clazzClassloader != null && !SPIClassIterator.isParentClassLoader(clazzClassloader, classloader)) { reload(clazzClassloader); } reload(classloader); }
/** * Reloads the codec list from the given {@link ClassLoader}. * Changes to the codecs are visible after the method ends, all * iterators ({@link #availableCodecs()},...) stay consistent. * * <p><b>NOTE:</b> Only new codecs are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new codecs on the given classpath/classloader!</em> */ public static void reloadCodecs(ClassLoader classloader) { Holder.getLoader().reload(classloader); }
/** * Reloads the DocValues format list from the given {@link ClassLoader}. * Changes to the docvalues formats are visible after the method ends, all * iterators ({@link #availableDocValuesFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new docvalues formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new docvalues formats on the given classpath/classloader!</em> */ public static void reloadDocValuesFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the postings format list from the given {@link ClassLoader}. * Changes to the postings formats are visible after the method ends, all * iterators ({@link #availablePostingsFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new postings formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new postings formats on the given classpath/classloader!</em> */ public static void reloadPostingsFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
public NamedSPILoader(Class<S> clazz, ClassLoader classloader) { this.clazz = clazz; // if clazz' classloader is not a parent of the given one, we scan clazz's classloader, too: final ClassLoader clazzClassloader = clazz.getClassLoader(); if (classloader == null) { classloader = clazzClassloader; } if (clazzClassloader != null && !SPIClassIterator.isParentClassLoader(clazzClassloader, classloader)) { reload(clazzClassloader); } reload(classloader); }
public NamedSPILoader(Class<S> clazz, ClassLoader classloader) { this.clazz = clazz; // if clazz' classloader is not a parent of the given one, we scan clazz's classloader, too: final ClassLoader clazzClassloader = clazz.getClassLoader(); if (classloader == null) { classloader = clazzClassloader; } if (clazzClassloader != null && !SPIClassIterator.isParentClassLoader(clazzClassloader, classloader)) { reload(clazzClassloader); } reload(classloader); }
public NamedSPILoader(Class<S> clazz, ClassLoader classloader) { this.clazz = clazz; // if clazz' classloader is not a parent of the given one, we scan clazz's classloader, too: final ClassLoader clazzClassloader = clazz.getClassLoader(); if (classloader == null) { classloader = clazzClassloader; } if (clazzClassloader != null && !SPIClassIterator.isParentClassLoader(clazzClassloader, classloader)) { reload(clazzClassloader); } reload(classloader); }
/** * Reloads the postings format list from the given {@link ClassLoader}. * Changes to the postings formats are visible after the method ends, all * iterators ({@link #availablePostingsFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new postings formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new postings formats on the given classpath/classloader!</em> */ public static void reloadPostingsFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the postings format list from the given {@link ClassLoader}. * Changes to the postings formats are visible after the method ends, all * iterators ({@link #availablePostingsFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new postings formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new postings formats on the given classpath/classloader!</em> */ public static void reloadPostingsFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the codec list from the given {@link ClassLoader}. * Changes to the codecs are visible after the method ends, all * iterators ({@link #availableCodecs()},...) stay consistent. * * <p><b>NOTE:</b> Only new codecs are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new codecs on the given classpath/classloader!</em> */ public static void reloadCodecs(ClassLoader classloader) { Holder.getLoader().reload(classloader); }
/** * Reloads the codec list from the given {@link ClassLoader}. * Changes to the codecs are visible after the method ends, all * iterators ({@link #availableCodecs()},...) stay consistent. * * <p><b>NOTE:</b> Only new codecs are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new codecs on the given classpath/classloader!</em> */ public static void reloadCodecs(ClassLoader classloader) { Holder.getLoader().reload(classloader); }
/** * Reloads the codec list from the given {@link ClassLoader}. * Changes to the codecs are visible after the method ends, all * iterators ({@link #availableCodecs()},...) stay consistent. * * <p><b>NOTE:</b> Only new codecs are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new codecs on the given classpath/classloader!</em> */ public static void reloadCodecs(ClassLoader classloader) { Holder.getLoader().reload(classloader); }
/** * Reloads the DocValues format list from the given {@link ClassLoader}. * Changes to the docvalues formats are visible after the method ends, all * iterators ({@link #availableDocValuesFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new docvalues formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new docvalues formats on the given classpath/classloader!</em> */ public static void reloadDocValuesFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the DocValues format list from the given {@link ClassLoader}. * Changes to the docvalues formats are visible after the method ends, all * iterators ({@link #availableDocValuesFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new docvalues formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new docvalues formats on the given classpath/classloader!</em> */ public static void reloadDocValuesFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the postings format list from the given {@link ClassLoader}. * Changes to the postings formats are visible after the method ends, all * iterators ({@link #availablePostingsFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new postings formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new postings formats on the given classpath/classloader!</em> */ public static void reloadPostingsFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }
/** * Reloads the DocValues format list from the given {@link ClassLoader}. * Changes to the docvalues formats are visible after the method ends, all * iterators ({@link #availableDocValuesFormats()},...) stay consistent. * * <p><b>NOTE:</b> Only new docvalues formats are added, existing ones are * never removed or replaced. * * <p><em>This method is expensive and should only be called for discovery * of new docvalues formats on the given classpath/classloader!</em> */ public static void reloadDocValuesFormats(ClassLoader classloader) { Holder.getLoader().reload(classloader); } }