1 //========================================================================
2 //Copyright 2004 Mort Bay Consulting Pty. Ltd.
3 //------------------------------------------------------------------------
4 //Licensed under the Apache License, Version 2.0 (the "License");
5 //you may not use this file except in compliance with the License.
6 //You may obtain a copy of the License at
7 //http://www.apache.org/licenses/LICENSE-2.0
8 //Unless required by applicable law or agreed to in writing, software
9 //distributed under the License is distributed on an "AS IS" BASIS,
10 //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 //See the License for the specific language governing permissions and
12 //limitations under the License.
13 //========================================================================
14 
15 package com.acme;
16 
17 import org.mortbay.component.AbstractLifeCycle;
18 
19 public class Base extends AbstractLifeCycle
20 {
21     String name;
22     int value;
23     String[] messages;
24 
25     /* ------------------------------------------------------------ */
26     /**
27      * @return Returns the messages.
28      */
getMessages()29     public String[] getMessages()
30     {
31         return messages;
32     }
33     /* ------------------------------------------------------------ */
34     /**
35      * @param messages The messages to set.
36      */
setMessages(String[] messages)37     public void setMessages(String[] messages)
38     {
39         this.messages = messages;
40     }
41     /* ------------------------------------------------------------ */
42     /**
43      * @return Returns the name.
44      */
getName()45     public String getName()
46     {
47         return name;
48     }
49     /* ------------------------------------------------------------ */
50     /**
51      * @param name The name to set.
52      */
setName(String name)53     public void setName(String name)
54     {
55         this.name = name;
56     }
57     /* ------------------------------------------------------------ */
58     /**
59      * @return Returns the value.
60      */
getValue()61     public int getValue()
62     {
63         return value;
64     }
65 
66     /* ------------------------------------------------------------ */
67     /**
68      * @param value The value to set.
69      */
setValue(int value)70     public void setValue(int value)
71     {
72         this.value = value;
73     }
74 
75     /* ------------------------------------------------------------ */
doSomething(int arg)76     public void doSomething(int arg)
77     {
78         System.err.println("doSomething "+arg);
79     }
80 
81     /* ------------------------------------------------------------ */
findSomething(int arg)82     public String findSomething(int arg)
83     {
84         return ("found "+arg);
85     }
86 
87 
88 }
89