Context is not persistent. The application context can be access using the ApplicationContextManager class.
Definition at line 42 of file ApplicationContext.java.
Public Member Functions | |
ApplicationContext () | |
void | addObject (String objectName, Object object) |
add the object with specified name to the context | |
void | removeObject (String objectName) |
remove the specified object name from the context | |
Object | getObject (String objectName) |
return the application context with specified name | |
String[] | getApplicationExecParameters () |
return the application arguments if initialized | |
void | setApplicationExecArguments (String[] args) |
set the application arguments | |
Plateform | getPlateform () |
return the plateform description of the hardware where the application is executed. | |
void | setPlateform (Plateform plateform) |
set the plateform description of the hardware where the application is executed. | |
Set | getObjectNames () |
return objects'keys in the context Map |
void org.openmobileis.common.context.ApplicationContext.addObject | ( | String | objectName, | |
Object | object | |||
) |
add the object with specified name to the context
objectName | : object name | |
object | : object added to the context. |
Definition at line 60 of file ApplicationContext.java.
void org.openmobileis.common.context.ApplicationContext.removeObject | ( | String | objectName | ) |
remove the specified object name from the context
objectName | : object name to remove |
Definition at line 71 of file ApplicationContext.java.
Object org.openmobileis.common.context.ApplicationContext.getObject | ( | String | objectName | ) |
return the application context with specified name
objectName | : object name to return |
Definition at line 83 of file ApplicationContext.java.
Referenced by org.openmobileis.modules.common.database.jdbc.JDBCGlobalPropertyQueryManager.JDBCGlobalPropertyQueryManager().
String [] org.openmobileis.common.context.ApplicationContext.getApplicationExecParameters | ( | ) |
return the application arguments if initialized
Definition at line 95 of file ApplicationContext.java.
Plateform org.openmobileis.common.context.ApplicationContext.getPlateform | ( | ) |
return the plateform description of the hardware where the application is executed.
By default the DefaultPlateform instance is return.
Definition at line 111 of file ApplicationContext.java.
void org.openmobileis.common.context.ApplicationContext.setPlateform | ( | Plateform | plateform | ) |
set the plateform description of the hardware where the application is executed.
If not set, by default the DefaultPlateform instance is set.
Definition at line 121 of file ApplicationContext.java.
Set org.openmobileis.common.context.ApplicationContext.getObjectNames | ( | ) |
return objects'keys in the context Map
Definition at line 129 of file ApplicationContext.java.