box.system.web.services.concurrent.Callable interface">
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.web.services.BaseService
coldbox.system.web.services.InterceptorService
public class InterceptorService
The coldbox interceptor service
| Constructor Summary | |
|---|---|
init(any controller)
Constructor |
|
| Method Summary | |
|---|---|
void |
appendInterceptionPoints(string customPoints)
Append a list of custom interception points to the CORE interception points |
private any |
createInterceptor(string interceptorClass, [struct interceptorProperties='[runtime expression]'])
Create an interceptor |
string |
getInterceptionPoints()
Get the interceptionPoints ENUM of all registered points of execution |
struct |
getInterceptionStates()
Get all the interception states defined in this service |
any |
getInterceptor([string interceptorName], [boolean deepSearch='false'])
Get an interceptor according to its name from cache, not from a state |
any |
getRequestBuffer()
Get a coldbox request buffer: coldbox |
any |
getStateContainer(string state)
Get a State Container, it will return a blank structure if the state is not found |
void |
onConfigurationLoad()
Called by loader service when configuration file loads |
private struct |
parseMetadata(any metadata, struct points)
I get a components valid interception points |
void |
processState(any state, [any interceptData='[runtime expression]'])
Process an interception state announcement |
private void |
registerInterceptionPoint(string interceptorKey, string state, any oInterceptor)
Register an Interception point into a new or created interception state |
void |
registerInterceptor([string interceptorClass], [any interceptorObject], [struct interceptorProperties='[runtime expression]'], [string customPoints=''], [string interceptorName])
Register an interceptor |
void |
registerInterceptors()
Register all the interceptors according to configuration |
boolean |
unregister([any interceptorName], [any state=''])
Unregister an interceptor from an interception state or all states |
| Methods inherited from class coldbox.system.web.services.BaseService |
|---|
convertToColdBox, getColdboxOCM, getController, getUtil, isFamilyType, onAspectsLoad, onShutdown, setController
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any controller)
controller| Method Detail |
|---|
public void appendInterceptionPoints(string customPoints)
customPoints - A comma delimmited list of custom interception points to append. If they already exists, then they will not be added again.private any createInterceptor(string interceptorClass, [struct interceptorProperties='[runtime expression]'])
interceptorClass - The class PathinterceptorProperties - The propertiespublic string getInterceptionPoints()
public struct getInterceptionStates()
public any getInterceptor([string interceptorName], [boolean deepSearch='false'])
interceptorName - The name of the interceptor to search fordeepSearch - By default we search the cache for the interceptor reference. If true, we search all the registered interceptor states for a match.public any getRequestBuffer()
public any getStateContainer(string state)
state - The state to retrievepublic void onConfigurationLoad()
onConfigurationLoad
in class
BaseService
private struct parseMetadata(any metadata, struct points)
metadata - The recursive metadatapoints - The active pointspublic void processState(any state, [any interceptData='[runtime expression]'])
state - An interception state to processinterceptData - A data structure used to pass intercepted information.private void registerInterceptionPoint(string interceptorKey, string state, any oInterceptor)
interceptorKey - The interceptor key in the cache.state - The state to createoInterceptor - The interceptor to registerpublic void registerInterceptor([string interceptorClass], [any interceptorObject], [struct interceptorProperties='[runtime expression]'], [string customPoints=''], [string interceptorName])
interceptorClass - Mutex with interceptorObject, this is the qualified class of the interceptor to registerinterceptorObject - Mutex with interceptor Class, this is used to register an already instantiated object as an interceptorinterceptorProperties - The structure of properties to register this interceptor with.customPoints - A comma delimmited list 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 classpublic void registerInterceptors()
public boolean unregister([any interceptorName], [any state=''])
interceptorName - The name of the interceptor to search forstate - The named state to unregister this interceptor from. If not passed, then it will be unregistered from all states.
|
ColdBox Platform Version 3.1.0 | ||||
| FRAMES | |||||