public final class Heaplets extends Object
Heaplet
classes based on the class of object they create. Three methods of
locating the heaplet class are attempted, in the following order:
Loader
class attempts to locate a HeapletFactory
interface implementation suitable for the class being created.Heaplet
class is searched for. Example: creating
com.example.Foo
would search for a heaplet class named
com.example.Foo$Heaplet
.Heaplet
appended. Example: creating
com.example.Foo
would search for a heaplet class named
com.example.FooHeaplet
. Modifier and Type | Method and Description |
---|---|
static Heaplet |
getHeaplet(Class<?> c)
Returns the heaplet that creates an instance of the specified class, or
null
if no such heaplet could be found. |
public static Heaplet getHeaplet(Class<?> c)
null
if no such heaplet could be found.c
- the class that the heaplet is responsible for creating.null
if not found.Copyright 2011-2017 ForgeRock AS.