public interface CustomInstanceFactory
instanceClass attribute.
Registered factories are called in the registration order, until one provides
a non-null result, which become the file's created instance. If all factories
return null, the FileSystems API will create the instance using the default
constructor.
Module implementors are encouraged to use the instanceCreate attribute
instead.| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
createInstance(java.lang.Class<T> clazz) |
Creates an instance of the class.
|
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.