/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }
/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading stats hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading stats hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }
/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }
/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }
/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading stats hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading stats hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }
/** * Finds a local resource by searching the ClasspathEntry objects of the classpath manager. * This method will first call all the configured class loading hooks * {@link ClassLoaderHook#preFindLocalResource(String, ClasspathManager)} methods. Then it * will search for the resource. Finally it will call all the configured class loading hooks * {@link ClassLoaderHook#postFindLocalResource(String, URL, ClasspathManager)} methods. * @param resource the requested resource name. * @return the requested resource URL or null if the resource does not exist */ public URL findLocalResource(String resource) { List<ClassLoaderHook> hooks = hookRegistry.getClassLoaderHooks(); for (ClassLoaderHook hook : hooks) { hook.preFindLocalResource(resource, this); } URL result = null; try { result = findLocalResourceImpl(resource, -1); return result; } finally { for (ClassLoaderHook hook : hooks) { hook.postFindLocalResource(resource, result, this); } } }