| Modifier and Type | Field and Description |
|---|---|
| private volatile SizeOfEngineFactory | |
| public static final SizeOfEngineLoader | INSTANCE
The one and single instance of this class |
| private final ServiceLoader |
| Access | Constructor and Description |
|---|---|
| pack-priv | SizeOfEngineLoader(ClassLoader
the classLoader the ServiceLoader will use to resolve net.sf.ehcache.pool.SizeOfEngineFactory services
Should probably always be SizeOfEngineLoader.class.getClassLoader() classLoader)Only there for testing purposes |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SizeOfEngine | createSizeOfEngine(final int
the max object graph that will be traversed. maxObjectCount, final boolean true if the object traversal should be aborted when the max depth is exceeded abort, final boolean true if no info log explaining which agent was chosen should be printed silent)Implements net. |
| public synchronized boolean | Returns: true if succeeded otherwise, falsethe class clazz, boolean whether to force a reload of the ServiceLoader reload)Tries to find a SizeOfEngineFactory instance that is assignable from clazz |
| public static SizeOfEngine | Returns: the new instancethe max object graph that will be traversed. maxObjectCount, final boolean true if the object traversal should be aborted when the max depth is exceeded abort, final boolean true if no info log explaining which agent was chosen should be printed silent)Creates a new instance of a SizeOfEngine |
| public void |
| factory | back to summary |
|---|---|
| private volatile SizeOfEngineFactory factory | |
| INSTANCE | back to summary |
|---|---|
| public static final SizeOfEngineLoader INSTANCE The one and single instance of this class | |
| loader | back to summary |
|---|---|
| private final ServiceLoader<SizeOfEngineFactory> loader | |
| SizeOfEngineLoader | back to summary |
|---|---|
| pack-priv SizeOfEngineLoader(ClassLoader classLoader) Only there for testing purposes
| |
| SizeOfEngineLoader | back to summary |
|---|---|
| private SizeOfEngineLoader() | |
| createSizeOfEngine | back to summary |
|---|---|
| public SizeOfEngine createSizeOfEngine(final int maxObjectCount, final boolean abort, final boolean silent) Implements net. Doc from net. Creates a new instance of a SizeOfEngine
| |
| load | back to summary |
|---|---|
| public synchronized boolean load(Class<? extends SizeOfEngineFactory> clazz, boolean reload) Tries to find a SizeOfEngineFactory instance that is assignable from clazz
| |
| newSizeOfEngine | back to summary |
|---|---|
| public static SizeOfEngine newSizeOfEngine(final int maxObjectCount, final boolean abort, final boolean silent) Creates a new instance of a SizeOfEngine
| |
| reload | back to summary |
|---|---|
| public void reload() Reloads the factory using the ServiceLoader | |