@Deprecated public abstract static class ConditionalAuditEventListener.ConditionalListenerHeaplet extends GenericHeaplet
Here is an example of an extending heap object declaration:
{
"name": "...",
"type": "MySubTypeExtendingConditionalListener",
"config": {
"condition": "${contains(event.tags, 'marker')}",
"any other": "configuration attributes"
}
}
The condition property declares the condition that needs to be evaluated to true
in order
to forward the event notification to the real listener. It defaults to ${true}
(will always invoke the
delegate).Constructor and Description |
---|
ConditionalAuditEventListener.ConditionalListenerHeaplet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
create()
Deprecated.
Called to request the heaplet create an object.
|
protected abstract AuditEventListener |
createListener()
Deprecated.
Creates a new
AuditEventListener that will be invoked if condition yields. |
void |
destroy()
Deprecated.
Called to indicate that the object created by the heaplet is going to be dereferenced.
|
create, endpointRegistry, start
public ConditionalAuditEventListener.ConditionalListenerHeaplet()
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.protected abstract AuditEventListener createListener() throws HeapException
AuditEventListener
that will be invoked if condition yields.AuditEventListener
that will be invoked if condition yields.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.public void destroy()
Heaplet
destroy
in interface Heaplet
destroy
in class GenericHeaplet
Copyright 2011-2015 ForgeRock AS.