From seam-commits at lists.jboss.org Thu May 27 21:37:25 2010 Content-Type: multipart/mixed; boundary="===============1947177685076673650==" MIME-Version: 1.0 From: seam-commits at lists.jboss.org To: seam-commits at lists.jboss.org Subject: [seam-commits] Seam SVN: r12879 - modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/context. Date: Thu, 27 May 2010 21:37:25 -0400 Message-ID: <201005280137.o4S1bPek006886@svn01.web.mwc.hst.phx2.redhat.com> --===============1947177685076673650== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: lincolnthree Date: 2010-05-27 21:37:24 -0400 (Thu, 27 May 2010) New Revision: 12879 Added: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/context/Flas= hContextImpl.java Log: First stab at real FlashScope implementation #3 Added: modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/context/= FlashContextImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/context/Fla= shContextImpl.java (rev 0) +++ modules/faces/trunk/impl/src/main/java/org/jboss/seam/faces/context/Fla= shContextImpl.java 2010-05-28 01:37:24 UTC (rev 12879) @@ -0,0 +1,67 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright 2010, Red Hat, Inc., and individual contributors + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.jboss.seam.faces.context; + +import java.io.Serializable; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import javax.enterprise.inject.Typed; + +/** + * @author Lincoln Baxter, III= + * = + */ +(a)Typed() +public class FlashContextImpl implements FlashContext, Serializable +{ + private static final long serialVersionUID =3D 7502050909452181348L; + private String id =3D null; + private final Map map =3D new ConcurrentHashMap(); + + public Object get(final String key) + { + return map.get(key); + } + + public String getId() + { + return id; + } + + public void setId(final String id) + { + this.id =3D id; + } + + public boolean isEmpty() + { + return map.isEmpty(); + } + + public void put(final String key, final Object value) + { + map.put(key, value); + } + +} --===============1947177685076673650==--