private static class ClassUtil.ClassInstantiator extends java.lang.Object implements IResourceInstantiator
IResourceInstantiator.ResourceInstantiationException| Modifier and Type | Field and Description |
|---|---|
private int |
m_currentFailure |
private int |
m_invalidAfterFailure |
| Constructor and Description |
|---|
ClassInstantiator() |
ClassInstantiator(int a_invalidAfterFailure) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkValidity(java.lang.Class a_loadedClass,
java.lang.String a_filename) |
java.lang.Object |
getInstance(java.io.File a_file,
java.io.File a_topDirectory)
Loads a file and transforms it into a concrete object.
|
java.lang.Object |
getInstance(java.io.InputStream a_inputStream,
java.lang.String a_resourceName)
Optional: may not be supported by all resource instantiators.
|
java.lang.Object |
getInstance(java.util.zip.ZipEntry a_entry,
java.util.zip.ZipFile a_file)
Loads a file and transforms it into a concrete object.
|
private int m_invalidAfterFailure
private int m_currentFailure
public ClassInstantiator()
public ClassInstantiator(int a_invalidAfterFailure)
public java.lang.Object getInstance(java.io.File a_file,
java.io.File a_topDirectory)
throws IResourceInstantiator.ResourceInstantiationException
IResourceInstantiatorgetInstance in interface IResourceInstantiatora_file - a Filea_topDirectory - the top directory of this file; this is generally not needed to load
the fileIResourceInstantiator.ResourceInstantiationExceptionpublic java.lang.Object getInstance(java.util.zip.ZipEntry a_entry,
java.util.zip.ZipFile a_file)
throws IResourceInstantiator.ResourceInstantiationException
IResourceInstantiatorgetInstance in interface IResourceInstantiatora_entry - a ZipEntrya_file - the ZipFile of this zip entryIResourceInstantiator.ResourceInstantiationExceptionprivate void checkValidity(java.lang.Class a_loadedClass,
java.lang.String a_filename)
throws IResourceInstantiator.ResourceInstantiationException
public java.lang.Object getInstance(java.io.InputStream a_inputStream,
java.lang.String a_resourceName)
IResourceInstantiatorgetInstance in interface IResourceInstantiatorCopyright © 2023. All rights reserved.