java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.screen.env.ScreenApplication
The mono-instance ScreenApplication object,
designed to store shared attributes at application level.
Constructor Summary | |
ScreenApplication()
Constructor |
Method Summary | |
void |
close()
Close the ScreenApplication (clean all the references held) |
java.lang.Object |
getAttribute(java.lang.String name)
Gets an object from the 'screen application attributes' using the given name If name is null : return null |
javax.servlet.ServletContext |
getServletContext()
Deprecated. use ScreenApplicationManager.getServletContext() instead |
java.lang.Object |
removeAttribute(java.lang.String name)
Removes an object from the 'screen application attributes' If name is null : do nothing and return null |
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an object as a 'screen application attribute', associated with a unique name If name is null : do nothing If value is null : remove the attribute associated with the given name |
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScreenApplication()
Method Detail |
public javax.servlet.ServletContext getServletContext()
public java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
name
- a string specifying the name of the objectvalue
- the value
public java.lang.Object getAttribute(java.lang.String name)
name
- a string specifying the name of the object
public java.lang.Object removeAttribute(java.lang.String name)
name
- : a string specifying the name of the object
public void close()