public final class SizeOfEngineLoader extends Object implements SizeOfEngineFactory
| Modifier and Type | Field and Description |
|---|---|
static SizeOfEngineLoader |
INSTANCE
The one and single instance of this class
|
| Modifier and Type | Method and Description |
|---|---|
SizeOfEngine |
createSizeOfEngine(int maxObjectCount,
boolean abort,
boolean silent)
Creates a new instance of a SizeOfEngine
|
boolean |
load(Class<? extends SizeOfEngineFactory> clazz,
boolean reload)
Tries to find a SizeOfEngineFactory instance that is assignable from clazz
|
static SizeOfEngine |
newSizeOfEngine(int maxObjectCount,
boolean abort,
boolean silent)
Creates a new instance of a SizeOfEngine
|
void |
reload()
Reloads the factory using the ServiceLoader
|
public static final SizeOfEngineLoader INSTANCE
public static SizeOfEngine newSizeOfEngine(int maxObjectCount, boolean abort, boolean silent)
maxObjectCount - the max object graph that will be traversed.abort - true if the object traversal should be aborted when the max depth is exceededsilent - true if no info log explaining which agent was chosen should be printedpublic SizeOfEngine createSizeOfEngine(int maxObjectCount, boolean abort, boolean silent)
createSizeOfEngine in interface SizeOfEngineFactorymaxObjectCount - the max object graph that will be traversed.abort - true if the object traversal should be aborted when the max depth is exceededsilent - true if no info log explaining which agent was chosen should be printedpublic void reload()
public boolean load(Class<? extends SizeOfEngineFactory> clazz, boolean reload)
clazz - the classreload - whether to force a reload of the ServiceLoaderCopyright 2001-2021, Terracotta, Inc.