lucee.Component
commandbox.system.services.InterceptorService
Copyright Since 2005 ColdBox Platform by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com The InterceptorService that wraps the EventPoolManager and provides special treatment for interceptors to give them virtual inheritance and autowiring
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
boolean
|
configured
|
false
|
true
|
false
|
any
|
EventPoolManager
|
true
|
false
|
|
any
|
InterceptionPoints
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
Shell
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init(any shell)
|
|
| Method Summary | |
|---|---|
any
|
announceInterception(string state, [struct interceptData='[runtime expression]'])
|
any
|
appendInterceptionPoints(any customPoints='')
Append a list of custom interception points to the CORE interception points and returns itself. |
any
|
configure()
|
any
|
createInterceptor(string interceptorClass, [any interceptorName], [any interceptorProperties='[runtime expression]'])
|
string
|
getConfigured()
|
string
|
getEventPoolManager()
|
string
|
getInterceptionPoints()
|
any
|
getInterceptionStates()
Get the registered event states in this event manager. |
any
|
getInterceptor(string interceptorName)
Get an interceptor according to its name from a state. |
string
|
getLog()
|
string
|
getShell()
|
any
|
processState(string state, [struct interceptData='[runtime expression]'])
|
any
|
registerInterceptor([any interceptor], [struct interceptorProperties='[runtime expression]'], [string customPoints=''], [string interceptorName=''])
|
any
|
setConfigured(boolean configured)
|
any
|
setEventPoolManager(any EventPoolManager)
|
any
|
setInterceptionPoints(any InterceptionPoints)
|
any
|
setLog(any log)
|
any
|
setShell(any Shell)
|
any
|
unregister(string name, [any state=''])
Unregister an interceptor from an interception state or all states. |
private any
|
wireboxSetup()
Verifies the setup for interceptor classes is online. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
shell| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - logbox:logger:{this}serializable - trueaccess - publicrequired - falsereturntype - anyserializable - true| Method Detail |
|---|
stateinterceptDataAppend a list of custom interception points to the CORE interception points and returns itself
customPoints - A comma delimmited list or array of custom interception points to append. If they already exists, then they will not be added again.interceptorClass - The class path to instantiateinterceptorName - The unique name of the interceptorinterceptorProperties - The propertiesGet the registered event states in this event manager
Get an interceptor according to its name from a state.
interceptorNamestateinterceptDatainterceptor - The qualified class of the interceptor to register or an already instantiated object as an interceptor.interceptorProperties - The structure of properties to register this interceptor with.customPoints - A comma delimmited list or array of custom interception points, if the object or class sent in observes them.interceptorName - The name to use for the interceptor when stored. If not used, we will use the name found in the object's classconfiguredEventPoolManagerInterceptionPointslogShellUnregister an interceptor from an interception state or all states. If the state does not exists, it returns false
namestateVerifies the setup for interceptor classes is online