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   * You do NOT have to implement this method to be able
20   * to use the Decorator Tag Library. This method
21   * only exists has a guide-line for creating decorators.
22   * <p>
23   * All your class must have is simply a method <code>decorate</code>
24   * that receives an <code>Object</code> and <i>decorates</i> it.
25   * </p>
26   *
27   * @author Filipe Tavares
28   * @version $Revision: 1.0$ ($Author: ftavares$)
29   * @since 14/12/2004 1:09:49
30   */
31  public interface Decorator {
32      /***
33       * @param object The object to decorate
34       * @return The decorated object
35       */
36      Object decorate(Object object);
37  }