01: /*
02: * Copyright 2007 Gerd Ziegler (www.gerdziegler.de)
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: * http://www.apache.org/licenses/LICENSE-2.0
07: * Unless required by applicable law or agreed to in writing,
08: * software distributed under the License is distributed on an
09: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10: * either express or implied. See the License for the specific
11: * language governing permissions and limitations under the License.
12: * 28.12.2007
13: * @author www.gerdziegler.de
14: */
15: package org.ztemplates.test.render.inheritance;
16:
17: import org.ztemplates.render.ZExpose;
18: import org.ztemplates.render.ZJavaScript;
19: import org.ztemplates.render.ZRenderer;
20: import org.ztemplates.render.ZScript;
21: import org.ztemplates.render.velocity.ZVelocityRenderer;
22:
23: @ZRenderer(ZVelocityRenderer.class)
24: @ZScript(javaScript=@ZJavaScript("/test.js"))
25: public class ExtensionClass1 extends BaseClass {
26: private String prop2 = "val2";
27:
28: @ZExpose
29: public String getProp2() {
30: return prop2;
31: }
32: }
|