1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }