KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > system > controller > integration > support > SimpleBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2006, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * 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 package org.jboss.test.system.controller.integration.support;
23
24 import org.jboss.test.system.controller.support.Order;
25 import org.jboss.test.system.controller.support.Simple;
26
27 /**
28  * SimpleBean.
29  *
30  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
31  * @version $Revision: 1.1 $
32  */

33 public class SimpleBean
34 {
35    /** Injection */
36    private Simple simple;
37    
38    public int createOrder;
39    public int startOrder;
40    public int stopOrder;
41    public int destroyOrder;
42
43    /**
44     * Create a new SimpleBean.
45     */

46    public SimpleBean()
47    {
48    }
49    
50    /**
51     * Create a new SimpleBean.
52     *
53     * @param simple the simple object
54     */

55    public SimpleBean(Simple simple)
56    {
57       this.simple = simple;
58    }
59
60    /**
61     * Get the simple.
62     *
63     * @return the simple.
64     */

65    public Simple getSimple()
66    {
67       return simple;
68    }
69
70    /**
71     * Set the simple.
72     *
73     * @param simple the simple.
74     */

75    public void setSimple(Simple simple)
76    {
77       this.simple = simple;
78    }
79    
80    public void create()
81    {
82       createOrder = Order.getOrder();
83    }
84    
85    public void start()
86    {
87       startOrder = Order.getOrder();
88    }
89    
90    public void create(Simple simple)
91    {
92       this.simple = simple;
93       createOrder = Order.getOrder();
94    }
95    
96    public void start(Simple simple)
97    {
98       this.simple = simple;
99       startOrder = Order.getOrder();
100    }
101    
102    public void install(Simple simple)
103    {
104       this.simple = simple;
105    }
106 }
107
Popular Tags