| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.event.AbstractEventFactory
public abstract class AbstractEventFactory
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 | eventInfoMapmap of supported event | 
| Constructor Summary | |
|---|---|
| protected  | AbstractEventFactory()Creates a new EventFactory object. | 
| Method Summary | |
|---|---|
|  void | addEventInfo(EventInfo einfo)Add a new EventInfo object into the factory. | 
| abstract  AbstractWebEvent | createEvent(String action,
            HttpServletRequest request,
            DbFormsConfig config)Create and return a new event. | 
| protected  AbstractWebEvent | 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 AbstractEventFactory()
| Method Detail | 
|---|
public abstract AbstractWebEvent 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 AbstractWebEvent 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 | |||||||||