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
212 * if a provider supporting the URI scheme is not installed
219 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
220 if (scheme.equalsIgnoreCase(provider.getScheme())) {
221 return provider.getFileSystem(uri);
231 * installed} providers to locate the provider that is identified by the URI
233 * without regard to case. The exact form of the URI is highly provider
234 * dependent. If found, the provider's {@link FileSystemProvider#newFileSystem(URI,Map)
238 * provider-dependent if the provider allows a new file system to be created
242 * Suppose there is a provider identified by the scheme {@code "memory"}
254 * a map of provider specific properties to configure the file system;
262 * by the provider, or a property value is invalid
266 * if a provider supporting the URI scheme is not installed
271 * permission required by the file system provider implementation
282 * <p> This method first attempts to locate an installed provider in exactly
285 * attempt is made to locate the provider using the given class loader. If a
286 * provider supporting the URI scheme is located then its {@link
293 * a map of provider specific properties to configure the file system;
296 * the class loader to locate the provider or {@code null} to only
297 * attempt to locate an installed provider
304 * by the provider, or a property value is invalid
306 * if the URI scheme identifies an installed provider and the file
309 * if a provider supporting the URI scheme is not found
311 * when an error occurs while loading a service provider
316 * permission required by the file system provider implementation
324 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
325 if (scheme.equalsIgnoreCase(provider.getScheme())) {
326 return provider.newFileSystem(uri, env);
330 // if not found, use service-provider loading facility
334 for (FileSystemProvider provider: sl) {
335 if (scheme.equalsIgnoreCase(provider.getScheme())) {
336 return provider.newFileSystem(uri, env);
353 * installed} providers. It invokes, in turn, each provider's {@link
355 * with an empty map. If a provider returns a file system then the iteration
358 * the provider using the given class loader. If a provider returns a file
364 * the class loader to locate the provider or {@code null} to only
365 * attempt to locate an installed provider
370 * if a provider supporting this file type cannot be located
372 * when an error occurs while loading a service provider
388 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) {
390 return provider.newFileSystem(path, env);
395 // if not found, use service-provider loading facility
399 for (FileSystemProvider provider: sl) {
401 return provider.newFileSystem(path, env);