Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.context.bound;
 
 
    private final NamingScheme namingScheme;
    public BoundRequestContextImpl(String contextId) {
        super(contextIdfalse);
        this. = new SimpleNamingScheme(BoundRequestContext.class.getName());
    }
    public Class<? extends AnnotationgetScope() {
        return RequestScoped.class;
    }
    public boolean associate(Map<StringObjectstorage) {
        if (getBeanStore() == null) {
            setBeanStore(new MapBeanStore(storage));
            getBeanStore().attach();
            return true;
        } else {
            return false;
        }
    }
    @Override
    public void activate() {
        super.activate();
        RequestScopedCache.beginRequest();
    }
    @Override
    public void deactivate() {
        try {
            RequestScopedCache.endRequest();
        } finally {
            super.deactivate();
        }
    }
    @Override
    public void invalidate() {
        super.invalidate();
        getBeanStore().detach();
    }
New to GrepCode? Check out our FAQ X