|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.beans.InterceptorState
public class InterceptorState
I am a pool of interceptors that can execute on a state or interception value.
| Constructor Summary | |
|---|---|
init(string state)
constructor |
|
| Method Summary | |
|---|---|
boolean |
exists(string InterceptorKey)
Checks if the passed interceptor key already exists |
any |
getInterceptor(string InterceptorKey)
Get an interceptor from this state |
any |
getInterceptors()
Get the interceptors linked hash map |
string |
getState()
Get the state's name |
private any |
invoker(any interceptor, any event, any interceptData)
Execute an interceptor execution point |
boolean |
isExecutable(any target, any event)
Checks if an interceptor is executable or not |
void |
process(any event, struct interceptData)
Process this state's interceptors |
void |
register(string InterceptorKey, any Interceptor)
Register an interceptor class with this state |
void |
setInterceptors(any interceptors)
Set interceptors linked hash map |
void |
setState(string state)
Set the state's name |
void |
unregister(string InterceptorKey)
Unregister an interceptor class from this state |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string state)
state - The interception state I model| Method Detail |
|---|
public boolean exists(string InterceptorKey)
InterceptorKey - The interceptor key class to registerpublic any getInterceptor(string InterceptorKey)
InterceptorKey - The interceptor key class to Unregisterpublic any getInterceptors()
public string getState()
private any invoker(any interceptor, any event, any interceptData)
interceptor - The interceptor reference from cacheevent - The event contextinterceptData - A metadata structure used to pass intercepted information.public boolean isExecutable(any target, any event)
target - The target interceptor to checkevent - The event context object.public void process(any event, struct interceptData)
event - The event context object.interceptData - A data structure used to pass intercepted information.public void register(string InterceptorKey, any Interceptor)
InterceptorKey - The interceptor key class to registerInterceptor - The interceptor reference from the cache.public void setInterceptors(any interceptors)
interceptorspublic void setState(string state)
statepublic void unregister(string InterceptorKey)
InterceptorKey - The interceptor key class to Unregister
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||