lucee.Componentcoldbox.system.web.services.BaseService
coldbox.system.web.services.HandlerService
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This service takes care of all event handling in ColdBox
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
struct
|
eventCacheDictionary
Event caching metadata dictionary.
|
true
|
false
|
|
boolean
|
eventCaching
Flag to denote event caching.
|
true
|
false
|
|
struct
|
handlerBeanCacheDictionary
Handler bean cache dictionary.
|
true
|
false
|
|
struct
|
handlerCacheDictionary
Handler cache metadata dictionary.
|
true
|
false
|
|
boolean
|
handlerCaching
Flag to denote handler caching.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any controller)
Constructor. |
Method Summary | |
---|---|
any
|
clearDictionaries()
Clear the internal cache dictionaries. |
any
|
defaultActionCheck(any event)
Do a default action checks on the incoming event string. |
string
|
getEventCacheDictionary()
|
string
|
getEventCaching()
|
private struct
|
getEventCachingMetadata(any ehBean, any oEventHandler)
Return the event caching metadata for an action execution context. |
struct
|
getEventMetadataEntry(any targetEvent)
Get an event string's metdata entry. |
any
|
getHandler(any ehBean, any requestContext)
Get a validated handler instance using an event handler bean and context. |
any
|
getHandlerBean(string event)
Parse the incoming event string into an event handler bean that is used for the current execution context. |
string
|
getHandlerBeanCacheDictionary()
|
string
|
getHandlerCacheDictionary()
|
string
|
getHandlerCaching()
|
array
|
getHandlerListing(any directory)
Retrieve handler listings from disk. |
private struct
|
getNewMDEntry()
Return a new metadata struct object. |
any
|
invalidEvent(string event, any ehBean)
Invalid Event procedures. |
boolean
|
isViewDispatch(string event, any ehBean)
Check if the incoming event has a matching implicit view to dispatch. |
any
|
newHandler(any invocationPath)
Asks wirebox for an instance of a handler. |
any
|
onConfigurationLoad()
Once configuration file loads setup the services with app specific variables. |
any
|
registerHandlers()
Register's application event handlers according to convention and external paths. |
any
|
setEventCacheDictionary(struct eventCacheDictionary)
|
any
|
setEventCaching(boolean eventCaching)
|
any
|
setHandlerBeanCacheDictionary(struct handlerBeanCacheDictionary)
|
any
|
setHandlerCacheDictionary(struct handlerCacheDictionary)
|
any
|
setHandlerCaching(boolean handlerCaching)
|
private any
|
wireboxSetup()
Verifies setup of base handler classes in WireBox. |
Methods inherited from class coldbox.system.web.services.BaseService |
---|
getController, onShutdown, setController |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
controller
- ColdBox ControllerProperty Detail |
---|
Event caching metadata dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueFlag to denote event caching
access
- publicrequired
- falsereturntype
- anyserializable
- trueHandler bean cache dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueHandler cache metadata dictionary
access
- publicrequired
- falsereturntype
- anyserializable
- trueFlag to denote handler caching
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Clear the internal cache dictionaries
Do a default action checks on the incoming event string. This method matches it against the internal handlers list. If found, then we append the default action to the event.
event
- The request contextReturn the event caching metadata for an action execution context.
ehBean
- The event handler beanoEventHandler
- The event handler to executeGet an event string's metdata entry. If not found, then you will get a new metadata entry using the `getNewMDEntry()` method.
targetEvent
- The event to match for metadata.Get a validated handler instance using an event handler bean and context. This is called once event execution is in progress. Before returning this method verifies method of execution, event caching, invalid events and stores metadata
ehBean
- The event handler bean representationrequestContext
- The request context objectParse the incoming event string into an event handler bean that is used for the current execution context
event
- The full event stringRetrieve handler listings from disk
directory
- The path to retrieveReturn a new metadata struct object
Invalid Event procedures
event
- The event that was found to be invalidehBean
- The event handler beanCheck if the incoming event has a matching implicit view to dispatch. This is usually called when there is no existing handler found.
event
- The event stringehBean
- The event handler beanAsks wirebox for an instance of a handler. It verifies that there is a mapping in Wirebox for the handler if it does not exist, it maps it first and then retrieves it.
invocationPath
- The handler invocation pathOnce configuration file loads setup the services with app specific variables
onConfigurationLoad
in class
BaseService
Register's application event handlers according to convention and external paths
eventCacheDictionary
eventCaching
handlerBeanCacheDictionary
handlerCacheDictionary
handlerCaching
Verifies setup of base handler classes in WireBox