box.system.services.concurrent.Callable interface">
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.services.BaseService
coldbox.system.services.HandlerService
public class HandlerService
This is the main Coldbox Handler service
| Constructor Summary | |
|---|---|
init(any controller)
Constructor |
|
| Method Summary | |
|---|---|
void |
clearDictionaries()
Clear the internal cache dictionaries |
void |
defaultEventCheck(any event)
Do a default Event check on the incoming event |
BaseDictionary |
getEventCacheDictionary()
|
struct |
getEventMetadataEntry(any targetEvent)
Get an event string's metadata entry |
any |
getHandler(any ehBean, any RequestContext)
Returns a valid event handler object ready for execution |
BaseDictionary |
getHandlerCacheDictionary()
|
array |
getHandlerListing(string directory)
Get an array of registered handlers |
struct |
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 ehBean)
Invalid Event procedures |
any |
newHandler(string 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 void |
saveHandlerMetadata(any targetHandler, any cacheKey, boolean force='false')
Save a handler's persistence metadata in the dictionary |
void |
setEventCacheDictionary(BaseDictionary EventCacheDictionary)
|
void |
setHandlerCacheDictionary(BaseDictionary HandlerCacheDictionary)
|
| Methods inherited from class coldbox.system.services.BaseService |
|---|
convertToColdBox, debug, getColdboxOCM, getLogger, getUtil, getcontroller, isFamilyType, onAspectsLoad, onShutdown, setcontroller
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any controller)
controller| Method Detail |
|---|
public void clearDictionaries()
public void defaultEventCheck(any event)
event - The created event context to test.public BaseDictionary getEventCacheDictionary()
public struct getEventMetadataEntry(any targetEvent)
targetEvent - The target eventpublic any getHandler(any ehBean, any RequestContext)
ehBean - The event handler bean to use: coldbox.system.beans.EventHandlerBeanRequestContext - The request contextpublic BaseDictionary getHandlerCacheDictionary()
public array getHandlerListing(string directory)
directorypublic struct getNewMDEntry()
public EventHandlerBean getRegisteredHandler(any event)
event - The full event string to check and get.private void invalidEvent(string event, any ehBean)
event - The event that was found invalidehBean - The event handler beanpublic any newHandler(string invocationPath)
invocationPath - The handler invocation pathpublic void onConfigurationLoad()
onConfigurationLoad
in class
BaseService
public void registerHandlers()
private void saveEventCachingmetadata(any eventUDF, any cacheKey, any cacheKeySuffix)
eventUDF - The handler event UDF to inspectcacheKey - The event cache keycacheKeySuffix - The event cache key suffixprivate void saveHandlerMetadata(any targetHandler, any cacheKey, boolean force='false')
targetHandler - The handler targetcacheKey - The handler cache keyforce - Force the md lookup. Most likely used when controller caching is offpublic void setEventCacheDictionary(BaseDictionary EventCacheDictionary)
EventCacheDictionarypublic void setHandlerCacheDictionary(BaseDictionary HandlerCacheDictionary)
HandlerCacheDictionary
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||