this.injector = injector; this.classLoaderHolder = new SafeHk2Loader((injector.getLoader() == null) ? new HK2LoaderImpl() : injector.getLoader() );
/** * Creates a {@link PopulatorPostProcessor} that will set the HK2Loader * of descriptors added with * {@link org.glassfish.hk2.api.Populator#populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)} * * @param classloader The classloader to use when classloading the added services * @param force If true then this will overwrite any value in the descriptor. If false then if * the descriptor will only be changed if the HK2Loader field of the descriptor is not * already set */ public ClassLoaderPostProcessor(ClassLoader classloader, boolean force) { loader = new HK2LoaderImpl(classloader); this.force = force; }
/** * Creates a {@link PopulatorPostProcessor} that will set the HK2Loader * of descriptors added with * {@link org.glassfish.hk2.api.Populator#populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)} * * @param classloader The classloader to use when classloading the added services * @param force If true then this will overwrite any value in the descriptor. If false then if * the descriptor will only be changed if the HK2Loader field of the descriptor is not * already set */ public ClassLoaderPostProcessor(ClassLoader classloader, boolean force) { loader = new HK2LoaderImpl(classloader); this.force = force; }
/** * Creates a {@link PopulatorPostProcessor} that will set the HK2Loader * of descriptors added with * {@link org.glassfish.hk2.api.Populator#populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)} * * @param classloader The classloader to use when classloading the added services * @param force If true then this will overwrite any value in the descriptor. If false then if * the descriptor will only be changed if the HK2Loader field of the descriptor is not * already set */ public ClassLoaderPostProcessor(ClassLoader classloader, boolean force) { loader = new HK2LoaderImpl(classloader); this.force = force; }
/** * Creates a {@link PopulatorPostProcessor} that will set the HK2Loader * of descriptors added with * {@link org.glassfish.hk2.api.Populator#populate(org.glassfish.hk2.api.DescriptorFileFinder, PopulatorPostProcessor...)} * * @param classloader The classloader to use when classloading the added services * @param force If true then this will overwrite any value in the descriptor. If false then if * the descriptor will only be changed if the HK2Loader field of the descriptor is not * already set */ public ClassLoaderPostProcessor(ClassLoader classloader, boolean force) { loader = new HK2LoaderImpl(classloader); this.force = force; }
this.injector = injector; this.classLoaderHolder = (injector.getLoader() == null) ? new HK2LoaderImpl() : injector.getLoader() ;
this.injector = injector; this.classLoaderHolder = new SafeHk2Loader((injector.getLoader() == null) ? new HK2LoaderImpl() : injector.getLoader() );