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 and Description |
|---|---|
<T> T |
createInstance(Class<T> clazz)
Creates an instance of the class.
|
<T> T createInstance(Class<T> clazz)
T - the desired typeclazz - the desired typenullBuilt on April 19 2017. | Portions Copyright 1997-2017 Oracle. All rights reserved.