|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCREventHandler
Objects that implement this interface can react when some kind of predefined event happens in MyCoRe. Implementing classes are registered using the configuration property MCR.EventHandler.[objType].X.Class=[package and class name] where [objType] is the object type like "MCRObject" or "MCRFile" and X is a number starting from 1. For event handlers that are indexers of the searcher package, there is a special syntax MCR.EventHandler.[objType].X.Indexer=[searcherID] where [searcherID] is the ID of the searcher that also is an indexer. Event handlers are called in the same order as they are registered in the properties file.
| Method Summary | |
|---|---|
void |
doHandleEvent(MCREvent evt)
Handles an event. |
void |
undoHandleEvent(MCREvent evt)
Handles rollback of event handling. |
| Method Detail |
|---|
void doHandleEvent(MCREvent evt)
throws MCRException
evt - the Event object containing information about the event
MCRException
void undoHandleEvent(MCREvent evt)
throws MCRException
evt - the Event object containing information about the event
MCRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||