public interface Heaplet
Heap
. A heaplet can retrieve
object(s) it depends on from the heap.Modifier and Type | Method and Description |
---|---|
Object |
create(Name name,
JsonValue config,
Heap heap)
Called to request the heaplet to create an object.
|
void |
destroy()
Called to indicate that the object created by the heaplet is going to be dereferenced.
|
Object create(Name name, JsonValue config, Heap heap) throws HeapException
name
- the name of the object to be created.config
- the heaplet's configuration object.heap
- the heap where object dependencies can be retrieved.HeapException
- if an exception occurred during creation of the object or any of its dependencies.JsonValueException
- if the heaplet (or one of its dependencies) has a malformed configuration object.void destroy()
Copyright 2011-2017 ForgeRock AS.