Lines Matching refs:provider

42  * the default {@link FileSystemProvider provider} to be loaded. The default
43 * provider, identified by the URI scheme "file", creates the {@link FileSystem}
45 * machine. If the process of loading or initializing the default provider fails
52 * service-provider loading facility defined by the {@link ServiceLoader} class.
58 * provider-configuration file named {@code java.nio.file.spi.FileSystemProvider}
63 * If a provider is instantiated and its {@link FileSystemProvider#getScheme()
64 * getScheme} returns the same URI scheme of a provider that was previously
66 * schemes are compared without regard to case. During construction a provider
67 * may safely access files associated with the default provider but care needs
73 * to be specified when locating a provider. As with installed providers, the
74 * provider classes are identified by placing the provider configuration file
94 // load default provider
95 FileSystemProvider provider = AccessController
103 return provider.getFileSystem(URI.create("file:///"));
106 // returns default provider
108 FileSystemProvider provider = sun.nio.fs.DefaultFileSystemProvider.create();
111 // set then its value is the name of the default provider (or a list)
121 provider = (FileSystemProvider)ctor.newInstance(provider);
124 if (!provider.getScheme().equals("file"))
125 throw new Error("Default provider must use scheme 'file'");
132 return provider;
145 * locates the default {@link FileSystemProvider provider} object. Where the
147 * not defined then the default provider is a system-default provider that
152 * names of concrete provider classes identified by the URI scheme
158 * If this process fails or a provider's scheme is not equal to {@code "file"}
160 * without regard to case but for the default provider, the scheme is
161 * required to be {@code "file"}. The first provider class is instantiated
162 * by invoking it with a reference to the system-default provider.
163 * The second provider class is instantiated by invoking it with a reference
164 * to the first provider instance. The third provider class is instantiated
166 * last provider to be instantiated becomes the default provider; its {@code
183 * installed} providers to locate the provider that is identified by the URI
185 * without regard to case. The exact form of the URI is highly provider
186 * dependent. If found, the provider's {@link FileSystemProvider#getFileSystem
190 * <p> Once a file system created by this provider is {@link FileSystem#close
191 * closed} it is provider-dependent if this method returns a reference to
193 * If the provider allows a new file system to be created with the same URI
198 * <p> If a security manager is installed then a provider implementation
208 * if a provider supporting the URI scheme is not installed
215 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
216 if (scheme.equalsIgnoreCase(provider.getScheme())) {
217 return provider.getFileSystem(uri);
227 * installed} providers to locate the provider that is identified by the URI
229 * without regard to case. The exact form of the URI is highly provider
230 * dependent. If found, the provider's {@link FileSystemProvider#newFileSystem(URI,Map)
234 * provider-dependent if the provider allows a new file system to be created
238 * Suppose there is a provider identified by the scheme {@code "memory"}
250 * a map of provider specific properties to configure the file system;
258 * by the provider, or a property value is invalid
262 * if a provider supporting the URI scheme is not installed
267 * permission required by the file system provider implementation
278 * <p> This method first attempts to locate an installed provider in exactly
281 * attempt is made to locate the provider using the given class loader. If a
282 * provider supporting the URI scheme is located then its {@link
289 * a map of provider specific properties to configure the file system;
292 * the class loader to locate the provider or {@code null} to only
293 * attempt to locate an installed provider
300 * by the provider, or a property value is invalid
302 * if the URI scheme identifies an installed provider and the file
305 * if a provider supporting the URI scheme is not found
307 * when an error occurs while loading a service provider
312 * permission required by the file system provider implementation
320 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
321 if (scheme.equalsIgnoreCase(provider.getScheme())) {
322 return provider.newFileSystem(uri, env);
326 // if not found, use service-provider loading facility
330 for (FileSystemProvider provider: sl) {
331 if (scheme.equalsIgnoreCase(provider.getScheme())) {
332 return provider.newFileSystem(uri, env);
349 * installed} providers. It invokes, in turn, each provider's {@link
351 * with an empty map. If a provider returns a file system then the iteration
354 * the provider using the given class loader. If a provider returns a file
360 * the class loader to locate the provider or {@code null} to only
361 * attempt to locate an installed provider
366 * if a provider supporting this file type cannot be located
368 * when an error occurs while loading a service provider
384 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
386 return provider.newFileSystem(path, env);
391 // if not found, use service-provider loading facility
395 for (FileSystemProvider provider: sl) {
397 return provider.newFileSystem(path, env);