01: /*
02: * JBoss, Home of Professional Open Source
03: * Copyright 2006, JBoss Inc., and individual contributors as indicated
04: * by the @authors tag. See the copyright.txt in the distribution for a
05: * full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22:
23: package org.jboss.test.jsf.webapp;
24:
25: /**
26: * Session bean used to tell if @PreDestroy was called on the InjectionBean.
27: *
28: * Also allows you to get the numList for testing JSTL/JSF integration.
29: *
30: * @author Stan Silvert
31: */
32: public class MySessionBean {
33:
34: private String[] numList = { "number one", "number two",
35: "number three" };
36:
37: private boolean preDestroyCalled = false;
38:
39: private JBossColor color = JBossColor.PURPLE;
40:
41: public boolean isPreDestroyCalled() {
42: return this .preDestroyCalled;
43: }
44:
45: public void setPreDestroyCalled(boolean preDestroyCalled) {
46: this .preDestroyCalled = preDestroyCalled;
47: }
48:
49: public JBossColor getColor() {
50: return this .color;
51: }
52:
53: public void setColor(JBossColor color) {
54: this .color = color;
55: }
56:
57: public String[] getNumList() {
58: return this .numList;
59: }
60:
61: public void setNumList(String[] numList) {
62: this.numList = numList;
63: }
64: }
|