org.openmobileis.common.context
Class ApplicationContext
java.lang.Object
|
+--org.openmobileis.common.context.ApplicationContext
- public class ApplicationContext
- extends java.lang.Object
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.
- Since:
- JDK 1.1
- Version:
- 1.0
- Author:
- Philippe Delrieu, Philippe Delrieu
Method Summary |
void |
addObject(java.lang.String objectName,
java.lang.Object object)
add the object with specified name to the context |
java.lang.String[] |
getApplicationExecParameters()
return the application arguments if initialized |
java.lang.Object |
getObject(java.lang.String objectName)
return the application context with specified name |
void |
removeObject(java.lang.String objectName)
remove the specified object name from the context |
void |
setApplicationExecArguments(java.lang.String[] args)
set the application arguments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationContext
public ApplicationContext()
addObject
public void addObject(java.lang.String objectName,
java.lang.Object object)
- add the object with specified name to the context
- Parameters:
objectName
- : object nameobject
- : object added to the context.
removeObject
public void removeObject(java.lang.String objectName)
- remove the specified object name from the context
- Parameters:
objectName
- : object name to remove
getObject
public java.lang.Object getObject(java.lang.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.
getApplicationExecParameters
public java.lang.String[] getApplicationExecParameters()
- return the application arguments if initialized
- Returns:
- return the application parameters if initialized
setApplicationExecArguments
public void setApplicationExecArguments(java.lang.String[] args)
- set the application arguments
Copyright 2005 e-Care. All Rights Reserved.