Package org.forgerock.openig.script
Class AbstractScriptableHeapObject.AbstractScriptableHeaplet
- java.lang.Object
-
- org.forgerock.openig.heap.GenericHeaplet
-
- org.forgerock.openig.script.AbstractScriptableHeapObject.AbstractScriptableHeaplet
-
- All Implemented Interfaces:
Heaplet
- Direct Known Subclasses:
ScriptableAccessTokenResolver.Heaplet
,ScriptableFilter.Heaplet
,ScriptableHandler.Heaplet
,ScriptableResourceAccess.Heaplet
,ScriptableResourceUriProvider.Heaplet
,ScriptableThrottlingPolicy.Heaplet
- Enclosing class:
- AbstractScriptableHeapObject<V>
protected abstract static class AbstractScriptableHeapObject.AbstractScriptableHeaplet extends GenericHeaplet
Creates and initializes a capture filter in a heap environment.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScriptableHeaplet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
create()
Called to request the heaplet create an object.protected abstract AbstractScriptableHeapObject<?>
newInstance(Script script, Heap heap)
Creates the new heap object instance using the provided script.-
Methods inherited from class org.forgerock.openig.heap.GenericHeaplet
create, destroy, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, getType, meterRegistryHolder, start
-
-
-
-
Method Detail
-
create
public Object create() throws HeapException
Description copied from class:GenericHeaplet
Called to request the heaplet create an object. Called byHeaplet.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 theGenericHeaplet.start()
method.- Specified by:
create
in classGenericHeaplet
- Returns:
- The created object.
- Throws:
HeapException
- if an exception occurred during creation of the heap object or any of its dependencies.
-
newInstance
protected abstract AbstractScriptableHeapObject<?> newInstance(Script script, Heap heap) throws HeapException
Creates the new heap object instance using the provided script.- Parameters:
script
- The compiled script.heap
- The heap to look for bindings- Returns:
- The new heap object instance using the provided script.
- Throws:
HeapException
- 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.
-
-