Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class Application  view Application download Application.java

java.lang.Object
  extended bycom.tripi.asp.Application
All Implemented Interfaces:
SimpleMap

public class Application
extends java.lang.Object
implements SimpleMap

Application is a class which holds application-specific data. This class corresponds to the global Application object available to VBScript applications. Implementation state:

Version:
0.9

Field Summary
 AspCollection Contents
          The contents of the variables stored in this application.
(package private)  org.apache.log4j.Category DBG
          Debugging output class.
private  java.lang.Thread lock
          The thread which currently has the lock, null means no thread has the lock.
 
Constructor Summary
Application()
           
 
Method Summary
 java.lang.Object get(java.lang.Object obj)
          Obtains the value of data contained within the application object.
 java.util.Enumeration getKeys()
          Obtains the list of keys stored in this object.
 void Lock()
          ASP function Lock, locks the application object.
 void put(java.lang.Object key, java.lang.Object value)
          Stores an objects into the application object.
 void Unlock()
          ASP function Unlock, unlocks the application object.
(package private)  void unlockIfThreadHasLock(java.lang.Thread thread)
          Internal function used to unlock the current application object only if the specified thread has a lock on it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

org.apache.log4j.Category DBG
Debugging output class.


lock

private java.lang.Thread lock
The thread which currently has the lock, null means no thread has the lock.


Contents

public AspCollection Contents
The contents of the variables stored in this application.

Constructor Detail

Application

public Application()
Method Detail

get

public java.lang.Object get(java.lang.Object obj)
                     throws AspException
Obtains the value of data contained within the application object.

Specified by:
get in interface SimpleMap

put

public void put(java.lang.Object key,
                java.lang.Object value)
         throws AspException
Stores an objects into the application object.

Specified by:
put in interface SimpleMap

getKeys

public java.util.Enumeration getKeys()
                              throws AspException
Obtains the list of keys stored in this object. Used for foreach statements.

Specified by:
getKeys in interface SimpleMap

Lock

public void Lock()
          throws AspException
ASP function Lock, locks the application object.


Unlock

public void Unlock()
            throws AspException
ASP function Unlock, unlocks the application object.


unlockIfThreadHasLock

void unlockIfThreadHasLock(java.lang.Thread thread)
Internal function used to unlock the current application object only if the specified thread has a lock on it.