|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.event.EventFactory
public abstract class EventFactory
The EventFactory abstract class provides the interface and the implementation of protected methods used by eventFactory subclasses (see NavEventFactory and DatabaseEventFactory).
| Field Summary | |
|---|---|
protected HashMap |
eventInfoMap
map of supported event |
| Constructor Summary | |
|---|---|
protected |
EventFactory()
Creates a new EventFactory object. |
| Method Summary | |
|---|---|
void |
addEventInfo(EventInfo einfo)
Add a new EventInfo object into the factory. |
abstract WebEvent |
createEvent(String action,
HttpServletRequest request,
DbFormsConfig config)
Create and return a new event. |
protected WebEvent |
getEvent(EventInfo einfo,
Class[] aconstructorArgsTypes,
Object[] constructorArgs)
Instance a new DatabaseEvent object. |
protected String |
getEventIdFromDestinationTable(HttpServletRequest request,
String action)
Get the Event identifier from the destination table related to the input action string |
protected String |
getEventIdFromDestinationTable(Table table,
String action)
Get the Event identifier from the destination table related to the input action string |
protected EventInfo |
getEventInfo(String id)
Get the EventInfo object having the input identifier. |
protected abstract void |
initializeEvents()
Initialize the default events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap eventInfoMap
| Constructor Detail |
|---|
protected EventFactory()
| Method Detail |
|---|
public abstract WebEvent createEvent(String action,
HttpServletRequest request,
DbFormsConfig config)
action - the action string that identifies the web eventrequest - the HttpServletRequest objectconfig - the DbForms config object
public void addEventInfo(EventInfo einfo)
einfo - the EventInfo object to add to
protected abstract void initializeEvents()
throws Exception
Exception - if any error occurs
protected WebEvent getEvent(EventInfo einfo,
Class[] aconstructorArgsTypes,
Object[] constructorArgs)
einfo - the EventInfo objectconstructorArgsTypes - array of constructor argument classesconstructorArgs - array of constructor argument objects
protected String getEventIdFromDestinationTable(HttpServletRequest request,
String action)
request - the request objectaction - the action string
protected String getEventIdFromDestinationTable(Table table,
String action)
table - the table objectaction - the action string
protected EventInfo getEventInfo(String id)
id - the EventInfo identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||