instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, instanceUrls, additionalUrls, ancestorClassLoader); } else { instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, Collections.emptySet(), additionalUrls, bundleClassLoader); for (URL url : instanceClassLoader.getURLs()) { logger.trace("URL resource {} for {}...", new Object[] {url.toExternalForm(), instanceIdentifier});
/** * @param identifier the id of the component this ClassLoader was created for * @param instanceUrls the urls for the instance, will either be empty or a copy of the NARs urls * @param additionalResourceUrls the urls that came from runtime properties of the component * @param parent the parent ClassLoader */ public InstanceClassLoader(final String identifier, final String type, final Set<URL> instanceUrls, final Set<URL> additionalResourceUrls, final ClassLoader parent) { super(combineURLs(instanceUrls, additionalResourceUrls), parent); this.identifier = identifier; this.instanceType = type; this.instanceUrls = Collections.unmodifiableSet( instanceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(instanceUrls)); this.additionalResourceUrls = Collections.unmodifiableSet( additionalResourceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(additionalResourceUrls)); }
instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, instanceUrls, additionalUrls, ancestorClassLoader); } else { instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, Collections.emptySet(), additionalUrls, bundleClassLoader); for (URL url : instanceClassLoader.getURLs()) { logger.trace("URL resource {} for {}...", new Object[]{url.toExternalForm(), instanceIdentifier});
/** * @param identifier the id of the component this ClassLoader was created for * @param instanceUrls the urls for the instance, will either be empty or a copy of the NARs urls * @param additionalResourceUrls the urls that came from runtime properties of the component * @param parent the parent ClassLoader */ public InstanceClassLoader(final String identifier, final String type, final Set<URL> instanceUrls, final Set<URL> additionalResourceUrls, final ClassLoader parent) { super(combineURLs(instanceUrls, additionalResourceUrls), parent); this.identifier = identifier; this.instanceType = type; this.instanceUrls = Collections.unmodifiableSet( instanceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(instanceUrls)); this.additionalResourceUrls = Collections.unmodifiableSet( additionalResourceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(additionalResourceUrls)); }
instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, instanceUrls, additionalUrls, ancestorClassLoader); } else { instanceClassLoader = new InstanceClassLoader(instanceIdentifier, classType, Collections.emptySet(), additionalUrls, bundleClassLoader); for (URL url : instanceClassLoader.getURLs()) { logger.trace("URL resource {} for {}...", new Object[]{url.toExternalForm(), instanceIdentifier});
/** * @param identifier the id of the component this ClassLoader was created for * @param instanceUrls the urls for the instance, will either be empty or a copy of the NARs urls * @param additionalResourceUrls the urls that came from runtime properties of the component * @param parent the parent ClassLoader */ public InstanceClassLoader(final String identifier, final String type, final Set<URL> instanceUrls, final Set<URL> additionalResourceUrls, final ClassLoader parent) { super(combineURLs(instanceUrls, additionalResourceUrls), parent); this.identifier = identifier; this.instanceType = type; this.instanceUrls = Collections.unmodifiableSet( instanceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(instanceUrls)); this.additionalResourceUrls = Collections.unmodifiableSet( additionalResourceUrls == null ? Collections.emptySet() : new LinkedHashSet<>(additionalResourceUrls)); }