You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/03/31 00:00:00 UTC
svn commit: r524288 - in
/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config:
InvalidScope.java ValidScope.java
Author: nbubna
Date: Fri Mar 30 15:00:00 2007
New Revision: 524288
URL: http://svn.apache.org/viewvc?view=rev&rev=524288
Log:
add annotations for restricting tool scopes
Added:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java (with props)
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java?view=auto&rev=524288
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java Fri Mar 30 15:00:00 2007
@@ -0,0 +1,40 @@
+package org.apache.velocity.tools.config;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ *
+ *
+ * @author Nathan Bubna
+ * @version $Id: InvalidScope.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface InvalidScope
+{
+ String[] value();
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/InvalidScope.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java?view=auto&rev=524288
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java Fri Mar 30 15:00:00 2007
@@ -0,0 +1,40 @@
+package org.apache.velocity.tools.config;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ *
+ *
+ * @author Nathan Bubna
+ * @version $Id: ValidScope.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface ValidScope
+{
+ String[] value();
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ValidScope.java
------------------------------------------------------------------------------
svn:keywords = Revision