org.openmobileis.common.context.ApplicationContext Class Reference

List of all members.

Detailed Description

Application Context are use to share application specific data between application objects.

Context is not persistent. The application context can be access using the ApplicationContextManager class.

Author:
Philippe Delrieu

Philippe Delrieu

Since:
JDK 1.1
Version:
1.0

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


Member Function Documentation

void org.openmobileis.common.context.ApplicationContext.addObject ( String  objectName,
Object  object 
)

add the object with specified name to the context

Parameters:
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

Parameters:
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

Parameters:
objectName : object name to return
Returns:
return the object with specified object name or null if not found.

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

Returns:
return the application parameters 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.

Returns:

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.

Returns:

Definition at line 121 of file ApplicationContext.java.

Set org.openmobileis.common.context.ApplicationContext.getObjectNames (  ) 

return objects'keys in the context Map

Returns:

Definition at line 129 of file ApplicationContext.java.


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:33 2006 for OpenMobileIS by  doxygen 1.5.1-p1