01: /*
02: * Copyright 2008 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: * @author www.gerdziegler.de
13: */
14: package org.ztemplates.render;
15:
16: import java.lang.annotation.Retention;
17: import java.lang.annotation.RetentionPolicy;
18:
19: /**
20: * Annotation for specifiying <sript>> tags that are needed by the
21: * template, especially JavaScript needed by Ajax applications. ztemplates
22: * collects all declarations and makes them available as "$script" to the
23: * template. Duplicates are removed and the order from the ZScript annotations
24: * is preserved.
25: *
26: * @return
27: */
28: @Retention(RetentionPolicy.RUNTIME)
29: public @interface ZJavaScript {
30: /**
31: * path relative to the contextPath or absolute pointing to scripts
32: */
33: String value();
34: }
|