lucee.Component coldbox.system.core.events.EventPool
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This object models an event driven pool of objects
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any<java.util.LinkedHashMap>
|
pool
The collection of listeners in the pool backed by a linked hashmap which is synchornized for threading.
|
true
|
false
|
|
any
|
state
The event pool state name.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any state)
Constructor. |
Method Summary | |
---|---|
boolean
|
exists(any key)
Check if a key exists in the pool. |
any
|
getObject(any key)
Get an object from this event pool. |
any
|
getPool()
Stupid accessors in CF11 does not work. |
string
|
getState()
|
private any
|
invoker(any target, any interceptData)
Execute the interception point, returns a value if the chain should be stopped (true) or ignored (void/false). |
any
|
process(any interceptData)
Process this event pool according to it's name. |
any
|
register(any key, any target)
Register an object with this pool. |
any
|
setPool(any pool)
|
any
|
setState(any state)
|
boolean
|
unregister(any key)
Unregister an object from this pool. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
state
- The name of the poolProperty Detail |
---|
The collection of listeners in the pool backed by a linked hashmap which is synchornized for threading
access
- publicrequired
- falsereturntype
- anydoc_generic
- java.util.LinkedHashMapserializable
- trueThe event pool state name
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Check if a key exists in the pool
key
Get an object from this event pool. Else return a blank structure if not found
key
Stupid accessors in CF11 does not work.
Execute the interception point, returns a value if the chain should be stopped (true) or ignored (void/false)
target
- The target objectinterceptData
- The data used in the interception callProcess this event pool according to it's name.
interceptData
- The data used in the interception callRegister an object with this pool
key
- The key of the objecttarget
- The objectpool
state
Unregister an object from this pool
key
- The key of the object