protected abstract static class AbstractScriptableHeapObject.AbstractScriptableHeaplet extends GenericHeaplet
Modifier | Constructor and Description |
---|---|
protected |
AbstractScriptableHeaplet() |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Called to request the heaplet create an object.
|
void |
destroy()
Called to indicate that the object created by the heaplet is going to be dereferenced.
|
protected abstract AbstractScriptableHeapObject<?> |
newInstance(Script script,
Heap heap)
Creates the new heap object instance using the provided script.
|
create, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, getType, meterRegistryHolder, start
public Object create() throws HeapException
GenericHeaplet
Heaplet.create(Name, JsonValue, Heap)
after initializing
the protected field members. Implementations should parse configuration
but not acquire resources, start threads, or log any initialization
messages. These tasks should be performed by the GenericHeaplet.start()
method.create
in class GenericHeaplet
HeapException
- if an exception occurred during creation of the heap object
or any of its dependencies.public void destroy()
Heaplet
destroy
in interface Heaplet
destroy
in class GenericHeaplet
protected abstract AbstractScriptableHeapObject<?> newInstance(Script script, Heap heap) throws HeapException
script
- The compiled script.heap
- The heap to look for bindingsHeapException
- if an exception occurred during creation of the heap
object or any of its dependencies.JsonValueException
- if the heaplet (or one of its dependencies) has a
malformed configuration.Copyright 2011-2017 ForgeRock AS.