View Javadoc

1   /*
2    * Copyright 2005 Filipe Tavares
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    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.devyant.decorutils;
17  
18  /***
19   * @author Filipe Tavares
20   * @version $Revision: 1.0$ ($Author: ftavares$)
21   * @since 28/Fev/2005 5:50:17
22   */
23  public abstract class Wrapper {
24      /***
25       * The object <code>Object</code>.
26       */
27      private Object object;
28  
29      /***
30       * @return The <code>Object</code> to decorate
31       */
32      protected final Object getObject() {
33          return object;
34      }
35  
36      /***
37       * Initialize the wrapper.
38       * @param object The <code>Object</code> to decorate
39       */
40      public final void init(final Object object) {
41          this.object = object;
42      }
43  }