Skip to content

Commit

Permalink
WELD-403 Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
drallen committed Feb 4, 2010
1 parent 3c8cf8d commit 90ca16e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 113 deletions.
Expand Up @@ -34,6 +34,10 @@ public class ConversationBeanStore extends HttpPassThruSessionBeanStore
public ConversationBeanStore(HttpSession session, boolean sessionInvalidated, String cid)
{
this.namingScheme = new NamingScheme(ConversationContext.class.getName() + "[" + cid + "]", "#");
if (sessionInvalidated)
{
invalidate();
}
attachToSession(session);
}

Expand Down
Expand Up @@ -37,7 +37,7 @@
* A BeanStore that maintains Contextuals in a hash map and writes them through
* to a HttpSession. When this BeanStore is attached to a session, it will load
* all the existing contextuals from the session within the naming scheme for
* this BeanStore. All read operations are directly against the local map.
* this BeanStore. All read operations are directly against the local map.
*
* @author David Allen
*/
Expand Down Expand Up @@ -118,10 +118,20 @@ public boolean isInvalidated()
protected void loadFromSession(HttpSession newSession)
{
log.trace("Loading bean store " + this + " map from session " + newSession.getId());
for (String id : this.getFilteredAttributeNames())
try
{
for (String id : this.getFilteredAttributeNames())
{
delegateBeanStore.put(id, (ContextualInstance<?>) super.getAttribute(id));
log.trace("Added contextual " + super.getAttribute(id) + " under ID " + id);
}
}
catch (IllegalStateException e)
{
delegateBeanStore.put(id, (ContextualInstance<?>) super.getAttribute(id));
log.trace("Added contextual " + super.getAttribute(id) + " under ID " + id);
// There's not a lot to do here if the session is invalidated while
// loading this map. These beans will not be destroyed since the
// references are lost.
delegateBeanStore.clear();
}
}

Expand Down

This file was deleted.

0 comments on commit 90ca16e

Please sign in to comment.