org.jboss.weld.context.beanstore.http
Class LazyCyclicSessionBeanStore

java.lang.Object
  extended by org.jboss.weld.context.beanstore.AttributeBeanStore
      extended by org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
          extended by org.jboss.weld.context.beanstore.http.LazySessionBeanStore
              extended by org.jboss.weld.context.beanstore.http.LazyCyclicSessionBeanStore
All Implemented Interfaces:
Iterable<String>, BeanStore, BoundBeanStore

public class LazyCyclicSessionBeanStore
extends LazySessionBeanStore

This session bean store knows how to handle cyclic bean creation.

Author:
Ales Justin

Constructor Summary
LazyCyclicSessionBeanStore(javax.servlet.http.HttpServletRequest request, NamingScheme namingScheme)
           
 
Method Summary
protected  Object getAttribute(String prefixedId)
          Gets an attribute from the underlying storage
protected  Collection<String> getAttributeNames()
          Gets an enumeration of the attribute names present in the underlying storage
protected  javax.servlet.http.HttpSession getSession(boolean create)
           
protected  void removeAttribute(String key)
          Removes an attribute from the underlying storage
protected  void setAttribute(String key, Object instance)
          Sets an instance under a key in the underlying storage
 
Methods inherited from class org.jboss.weld.context.beanstore.http.LazySessionBeanStore
getSessionIfExists
 
Methods inherited from class org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore
get, getLockStore
 
Methods inherited from class org.jboss.weld.context.beanstore.AttributeBeanStore
attach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyCyclicSessionBeanStore

public LazyCyclicSessionBeanStore(javax.servlet.http.HttpServletRequest request,
                                  NamingScheme namingScheme)
Method Detail

getSession

protected javax.servlet.http.HttpSession getSession(boolean create)
Overrides:
getSession in class LazySessionBeanStore

getAttributeNames

protected Collection<String> getAttributeNames()
Description copied from class: AttributeBeanStore
Gets an enumeration of the attribute names present in the underlying storage

Overrides:
getAttributeNames in class AbstractSessionBeanStore
Returns:
The attribute names

removeAttribute

protected void removeAttribute(String key)
Description copied from class: AttributeBeanStore
Removes an attribute from the underlying storage

Overrides:
removeAttribute in class AbstractSessionBeanStore
Parameters:
key - The (prefixed) id of the attribute to remove

setAttribute

protected void setAttribute(String key,
                            Object instance)
Description copied from class: AttributeBeanStore
Sets an instance under a key in the underlying storage

Overrides:
setAttribute in class AbstractSessionBeanStore
Parameters:
key - The (prefixed) id of the attribute to set
instance - The instance

getAttribute

protected Object getAttribute(String prefixedId)
Description copied from class: AttributeBeanStore
Gets an attribute from the underlying storage

Overrides:
getAttribute in class AbstractSessionBeanStore
Parameters:
prefixedId - The (prefixed) id of the attribute
Returns:
The data


Copyright © 2013 Seam Framework. All Rights Reserved.