Examples of SessionAttribute


Examples of com.alibaba.citrus.service.requestcontext.session.impl.SessionAttribute

        @SuppressWarnings("unchecked")
        Map<String, SessionAttribute> attrs = getFieldValue(session, "attrs", Map.class);

        session.setAttribute("count", 0);

        SessionAttribute attr = attrs.get("count");
        assertTrue(attr.isModified());

        requestContexts.commitRequestContext(requestContext);
        assertSame(attr, attrs.get("count"));
        assertFalse(attr.isModified())// 提交以后,modified被复位
    }
View Full Code Here

Examples of org.apache.tapestry5.annotations.SessionAttribute

        }
    }

    private void convertFieldToSessionAccess(PlasticField field)
    {
        SessionAttribute annotation = field.getAnnotation(SessionAttribute.class);

        field.claim(annotation);

        String key = determineSessionKey(field, annotation.value());

        field.setConduit(new SessionKeyConduit(key));
    }
View Full Code Here

Examples of org.apache.tapestry5.annotations.SessionAttribute

        }
    }

    private void convertFieldToSessionAccess(TransformField field)
    {
        SessionAttribute annotation = field.getAnnotation(SessionAttribute.class);

        field.claim(annotation);

        String key = determineSessionKey(field, annotation.value());

        field.replaceAccess(new SessionKeyConduit(key));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.