|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.LifeCycleEventHandler abbreviations.LifeCycleHandler
public class LifeCycleHandler
This event handler uses the model load and model unload events to load and unload code translation tables based upon the current locale.
The code translation table is a ResourceBundle
stored in the parent directory in the file "Abbreviations.properties".
The resource bundle is stored in the model hashmap under the name
stored in the read-only variable Constants.translator
.
Field Summary | |
---|---|
static int |
authenticateUserTimeout
Timeout in seconds for the authenticateUser() event. |
static int |
clientSessionCreatedTimeout
Timeout in seconds for the clientSessionCreated() event. |
static int |
clientSessionDestroyedTimeout
Timeout in seconds for the clientSessionDestroyed() event. |
static java.lang.String |
description
|
static int |
hostSessionCreatedTimeout
Timeout in seconds for the hostSessionCreated() event. |
static int |
hostSessionDestroyedTimeout
Timeout in seconds for the hostSessionDestroyed() event. |
static int |
modelLoadedTimeout
Timeout in seconds for the modelLoaded() event. |
static int |
modelUnloadedTimeout
Timeout in seconds for the modelUnloaded() event. |
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
---|
DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
LifeCycleHandler()
|
Method Summary | |
---|---|
void |
modelLoaded(com.wrq.vhi.script.api.ModelLoadedEvent event)
Store a pointer to the localized abbreviations in the model hashmap when the model is loaded. |
void |
modelUnloaded(com.wrq.vhi.script.api.ModelUnloadedEvent event)
Remove the localized abbreviations from the model hashmap when the model is unloaded. |
Methods inherited from class com.wrq.vhi.script.api.LifeCycleEventHandler |
---|
authenticateUser, clientSessionCreated, clientSessionDestroyed, hostSessionCreated, hostSessionDestroyed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String description
public static final int modelLoadedTimeout
public static final int modelUnloadedTimeout
public static final int hostSessionCreatedTimeout
public static final int hostSessionDestroyedTimeout
public static final int clientSessionCreatedTimeout
public static final int clientSessionDestroyedTimeout
public static final int authenticateUserTimeout
Constructor Detail |
---|
public LifeCycleHandler()
Method Detail |
---|
public void modelLoaded(com.wrq.vhi.script.api.ModelLoadedEvent event)
modelLoaded
in class com.wrq.vhi.script.api.LifeCycleEventHandler
event
- the event instancepublic void modelUnloaded(com.wrq.vhi.script.api.ModelUnloadedEvent event)
modelUnloaded
in class com.wrq.vhi.script.api.LifeCycleEventHandler
event
- the event instance
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |