Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.context.bound;
 
 import java.util.Map;
 
    // There is no need to store FQCN in a session key
    private static final String NAMING_SCHEME_PREFIX = "WELD_BC";
    public BoundConversationContextImpl(String contextIdBeanIdentifierIndex beanIdentifierIndex) {
        super(contextIdbeanIdentifierIndex);
    }
    @Override
    protected void setSessionAttribute(BoundRequest requestString nameObject valueboolean create) {
        request.getSessionMap(create).put(namevalue);
    }
    @Override
    protected Object getSessionAttribute(BoundRequest requestString nameboolean create) {
        return request.getSessionMap(create).get(name);
    }
    @Override
    protected void removeRequestAttribute(BoundRequest requestString name) {
        request.getRequestMap().remove(name);
    }
    @Override
    protected void setRequestAttribute(BoundRequest requestString nameObject value) {
        request.getRequestMap().put(namevalue);
    }
    @Override
    protected Object getRequestAttribute(BoundRequest requestString name) {
        return request.getRequestMap().get(name);
    }
    @Override
    protected BoundBeanStore createRequestBeanStore(NamingScheme namingSchemeBoundRequest request) {
        return new SessionMapBeanStore(namingSchemerequest.getSessionMap(false));
    }
    @Override
    protected BoundBeanStore createSessionBeanStore(NamingScheme namingSchemeMap<StringObjectsession) {
        return new SessionMapBeanStore(namingSchemesession);
    }
    @Override
    protected Object getSessionAttributeFromSession(Map<StringObjectsessionString name) {
        return session.get(name);
    }
    @Override
    protected Map<StringObjectgetSessionFromRequest(BoundRequest requestboolean create) {
        return request.getSessionMap(create);
    }
    @Override
    protected String getNamingSchemePrefix() {
        return ;
    }
New to GrepCode? Check out our FAQ X