org.objectweb.telosys.screen.env
Class ScreenApplication

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.screen.env.ScreenApplication

public class ScreenApplication
extends TelosysObject

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

ScreenApplication

public ScreenApplication()
Constructor

Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Deprecated. use ScreenApplicationManager.getServletContext() instead

Return the ServletContext (WebApp context) of the current application

Returns:

setAttribute

public 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

Parameters:
name - a string specifying the name of the object
value - the value
Returns:
the previous value of the specified key in this hashtable, or null

getAttribute

public 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

Parameters:
name - a string specifying the name of the object
Returns:
value instance ( or null if key is null or not found )

removeAttribute

public 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

Parameters:
name - : a string specifying the name of the object
Returns:
: the value removed, or null if not found

close

public void close()
Close the ScreenApplication (clean all the references held)