01: //========================================================================
02: //Copyright 2004 Mort Bay Consulting Pty. Ltd.
03: //------------------------------------------------------------------------
04: //Licensed under the Apache License, Version 2.0 (the "License");
05: //you may not use this file except in compliance with the License.
06: //You may obtain a copy of the License at
07: //http://www.apache.org/licenses/LICENSE-2.0
08: //Unless required by applicable law or agreed to in writing, software
09: //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: String name;
21: int value;
22: String[] messages;
23:
24: /* ------------------------------------------------------------ */
25: /**
26: * @return Returns the messages.
27: */
28: public String[] getMessages() {
29: return messages;
30: }
31:
32: /* ------------------------------------------------------------ */
33: /**
34: * @param messages The messages to set.
35: */
36: public void setMessages(String[] messages) {
37: this .messages = messages;
38: }
39:
40: /* ------------------------------------------------------------ */
41: /**
42: * @return Returns the name.
43: */
44: public String getName() {
45: return name;
46: }
47:
48: /* ------------------------------------------------------------ */
49: /**
50: * @param name The name to set.
51: */
52: public void setName(String name) {
53: this .name = name;
54: }
55:
56: /* ------------------------------------------------------------ */
57: /**
58: * @return Returns the value.
59: */
60: public int getValue() {
61: return value;
62: }
63:
64: /* ------------------------------------------------------------ */
65: /**
66: * @param value The value to set.
67: */
68: public void setValue(int value) {
69: this .value = value;
70: }
71:
72: /* ------------------------------------------------------------ */
73: public void doSomething(int arg) {
74: System.err.println("doSomething " + arg);
75: }
76:
77: /* ------------------------------------------------------------ */
78: public String findSomething(int arg) {
79: return ("found " + arg);
80: }
81:
82: }
|