railo-context.Component coldbox.system.web.services.BaseService coldbox.system.web.services.HandlerService
This is the main Coldbox Handler service
Constructor Summary | |
---|---|
init(any controller)
Constructor. |
Method Summary | |
---|---|
void
|
afterInstanceAutowire([any event], [any interceptData])
Called by wirebox once instances are autowired. |
void
|
clearDictionaries()
Clear the internal cache dictionaries. |
void
|
defaultEventCheck(any event)
Do a default Event check on the incoming event. |
struct
|
getEventCacheDictionary()
|
any
|
getEventMetadataEntry(any targetEvent)
Get an event string's metadata entry: struct. |
any
|
getHandler(any ehBean, any requestContext)
Returns a valid event handler object ready for execution. |
array
|
getHandlerListing(string directory)
Get an array of registered handlers. |
any
|
getNewMDEntry()
Get a new metadata entry structure. |
EventHandlerBean
|
getRegisteredHandler(any event)
I parse the incoming event string into an event handler bean that is used for executions. |
private void
|
invalidEvent(string event, any<EventHandlerBean> ehBean)
Invalid Event procedures. |
any
|
isViewDispatch(any event, any ehBean)
Check if the incoming event has a matching implicit view dispatch available. |
any
|
newHandler(any invocationPath)
Create a New Handler Instance. |
void
|
onConfigurationLoad()
Called by loader service when configuration file loads. |
void
|
registerHandlers()
I register your application's event handlers. |
private void
|
saveEventCachingmetadata(any eventUDF, any cacheKey, any cacheKeySuffix)
Save a handler's event caching metadata in the dictionary. |
private any
|
wireboxSetup()
Verifies the setup for handler classes is online. |
Methods inherited from class coldbox.system.web.services.BaseService |
---|
getController, onShutdown, setController |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
controller
Method Detail |
---|
Called by wirebox once instances are autowired
event
interceptData
Clear the internal cache dictionaries
Do a default Event check on the incoming event
event
- The created event context to test for the default eventGet an event string's metadata entry: struct
targetEvent
- The target eventReturns a valid event handler object ready for execution
ehBean
- The event handler bean to use: coldbox.system.web.context.EventHandlerBeanrequestContext
- The request contextGet an array of registered handlers
directory
Get a new metadata entry structure
I parse the incoming event string into an event handler bean that is used for executions.
event
- The full event string to check and get.Invalid Event procedures. Throws EventHandlerNotRegisteredException
event
- The event that was found invalidehBean
- The event handler beanCheck if the incoming event has a matching implicit view dispatch available
event
- The event stringehBean
- The event handler beanCreate a New Handler Instance
invocationPath
- The handler invocation pathCalled by loader service when configuration file loads
onConfigurationLoad
in class
BaseService
I register your application's event handlers
Save a handler's event caching metadata in the dictionary
eventUDF
- The handler event UDF to inspectcacheKey
- The event cache keycacheKeySuffix
- The event cache key suffixVerifies the setup for handler classes is online