summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/service
diff options
context:
space:
mode:
authorPetter Holmström <petter.holmstrom@itmill.com>2009-11-17 11:15:08 +0000
committerPetter Holmström <petter.holmstrom@itmill.com>2009-11-17 11:15:08 +0000
commit375baea875ff03d5d91229fa7446f9ebcb089082 (patch)
tree977d28d75adb96f4a5b27f935c5f62ba6259843e /src/com/vaadin/service
parent4023f7c379387e41a0a3486e0731884038b7bb3f (diff)
parent2772a7d63efa97318944413b0db8fe06c31cfaaa (diff)
downloadvaadin-framework-375baea875ff03d5d91229fa7446f9ebcb089082.tar.gz
vaadin-framework-375baea875ff03d5d91229fa7446f9ebcb089082.zip
Merge with 6.2
svn changeset:9833/svn branch:portlet_2.0
Diffstat (limited to 'src/com/vaadin/service')
-rw-r--r--src/com/vaadin/service/ApplicationContext.java40
1 files changed, 25 insertions, 15 deletions
diff --git a/src/com/vaadin/service/ApplicationContext.java b/src/com/vaadin/service/ApplicationContext.java
index 96a6f60906..756a8e50c8 100644
--- a/src/com/vaadin/service/ApplicationContext.java
+++ b/src/com/vaadin/service/ApplicationContext.java
@@ -14,7 +14,8 @@ import com.vaadin.terminal.ApplicationResource;
/**
* <code>ApplicationContext</code> provides information about the running
* context of the application. Each context is shared by all applications that
- * are open for one user. In web-environment this corresponds to HttpSession.
+ * are open for one user. In a web-environment this corresponds to a
+ * HttpSession.
*
* @author IT Mill Ltd.
* @version
@@ -26,28 +27,28 @@ public interface ApplicationContext extends Serializable {
/**
* Returns application context base directory.
*
- * Typically an application is deployed in a such way that is has
+ * Typically an application is deployed in a such way that is has an
* application directory. For web applications this directory is the root
- * directory of the web applications. In some cases application might not
- * have application directory (for example web applications running inside
- * of war).
+ * directory of the web applications. In some cases applications might not
+ * have an application directory (for example web applications running
+ * inside a war).
*
- * @return The application base directory
+ * @return The application base directory or null if the application has no
+ * base directory.
*/
public File getBaseDirectory();
/**
- * Gets the applications in this context.
+ * Returns a collection of all the applications in this context.
*
- * Gets all applications in this context. Each application context contains
- * all applications that are open for one user.
+ * Each application context contains all active applications for one user.
*
- * @return Collection containing all applications in this context
+ * @return A collection containing all the applications in this context.
*/
public Collection<Application> getApplications();
/**
- * Adds transaction listener to this context.
+ * Adds a transaction listener to this context.
*
* @param listener
* the listener to be added.
@@ -56,7 +57,7 @@ public interface ApplicationContext extends Serializable {
public void addTransactionListener(TransactionListener listener);
/**
- * Removes transaction listener from this context.
+ * Removes a transaction listener from this context.
*
* @param listener
* the listener to be removed.
@@ -65,9 +66,8 @@ public interface ApplicationContext extends Serializable {
public void removeTransactionListener(TransactionListener listener);
/**
- * Interface for listening the application transaction events.
- * Implementations of this interface can be used to listen all transactions
- * between the client and the application.
+ * Interface for listening to transaction events. Implement this interface
+ * to listen to all transactions between the client and the application.
*
*/
public interface TransactionListener extends Serializable {
@@ -75,6 +75,11 @@ public interface ApplicationContext extends Serializable {
/**
* Invoked at the beginning of every transaction.
*
+ * The transaction is linked to the context, not the application so if
+ * you have multiple applications running in the same context you need
+ * to check that the request is associated with the application you are
+ * interested in. This can be done looking at the application parameter.
+ *
* @param application
* the Application object.
* @param transactionData
@@ -86,6 +91,11 @@ public interface ApplicationContext extends Serializable {
/**
* Invoked at the end of every transaction.
*
+ * The transaction is linked to the context, not the application so if
+ * you have multiple applications running in the same context you need
+ * to check that the request is associated with the application you are
+ * interested in. This can be done looking at the application parameter.
+ *
* @param applcation
* the Application object.
* @param transactionData