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/22 19:18:23 UTC
svn commit: r521392 - in
/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view:
context/ servlet/
Author: nbubna
Date: Thu Mar 22 11:18:22 2007
New Revision: 521392
URL: http://svn.apache.org/viewvc?view=rev&rev=521392
Log:
add back moved classes as deprecated subclasses for backwards compatibility
Added:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java (with props)
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java (with props)
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,33 @@
+package org.apache.velocity.tools.view.context;
+
+/*
+ * 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.
+ */
+
+/**
+ * @deprecated Use {@link org.apache.velocity.tools.view.ViewContext}
+ * @version $Id: ViewContext.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+public interface ViewContext extends
+ org.apache.velocity.tools.view.ViewContext
+{
+
+ /** @deprecated */
+ public static final String XHTML = "XHTML";
+
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/context/ViewContext.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,46 @@
+package org.apache.velocity.tools.view.servlet;
+
+/*
+ * 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 org.apache.velocity.runtime.log.LogSystem;
+import org.apache.velocity.tools.view.ServletLogChute;
+
+/**
+ * <p>This is basically an empty subclass of {@link ServletLogChute} that exists
+ * merely for backwards compatibility with VelocityTools 1.x. Please
+ * use {@link ServletLogChute} directly, as this will likely be removed
+ * in VelocityTools 2.1, if not earlier.
+ * </p>
+ *
+ * @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
+ * @deprecated Use {@link ServletLogChute} instead
+ * @version $Revision$ $Date: 2007-02-26 11:24:39 -0800 (Mon, 26 Feb 2007) $
+ */
+public class ServletLogger extends ServletLogChute implements LogSystem
+{
+ /**
+ * Send a log message from Velocity.
+ */
+ public void logVelocityMessage(int level, String message)
+ {
+ log(level, message);
+ }
+
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletLogger.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,27 @@
+package org.apache.velocity.tools.view.servlet;
+
+/*
+ * 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.
+ */
+
+/**
+ * @deprecated Use {@link org.apache.velocity.tools.view.ServletUtils}
+ * @version $Id: ServletUtils.java 471244 2006-11-04 18:34:38Z henning $
+ */
+public class ServletUtils extends
+ org.apache.velocity.tools.view.ServletUtils {}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/ServletUtils.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,30 @@
+package org.apache.velocity.tools.view.servlet;
+
+/*
+ * 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.
+ */
+
+/**
+ * @author Nathan Bubna
+ * @deprecated This has moved to {@link org.apache.velocity.tools.view.VelocityLayoutServlet}
+ * @version $Id: VelocityLayoutServlet.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+public class VelocityLayoutServlet
+ extends org.apache.velocity.tools.view.VelocityLayoutServlet
+{
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,31 @@
+package org.apache.velocity.tools.view.servlet;
+
+/*
+ * 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.
+ */
+
+
+/**
+ * @deprecated This class has moved to {@link org.apache.velocity.tools.view.VelocityViewServlet}
+ * @version $Id: VelocityViewServlet.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+
+public class VelocityViewServlet
+ extends org.apache.velocity.tools.view.VelocityViewServlet
+{
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/VelocityViewServlet.java
------------------------------------------------------------------------------
svn:keywords = Revision
Added: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java?view=auto&rev=521392
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java (added)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java Thu Mar 22 11:18:22 2007
@@ -0,0 +1,35 @@
+package org.apache.velocity.tools.view.servlet;
+
+/*
+ * 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 org.apache.velocity.tools.view.WebappResourceLoader;
+
+/**
+ * <p>This is basically an empty subclass of {@link WebappResourceLoader} that exists
+ * merely for backwards compatibility with VelocityTools 1.x. Please
+ * use {@link WebappResourceLoader} directly, as this may be removed
+ * in VelocityTools 2.1.
+ * </p>
+ * @deprecated Use {@link WebappResourceLoader} instead.
+ * @version $Id: WebappLoader.java 511959 2007-02-26 19:24:39Z nbubna $
+ */
+public class WebappLoader extends WebappResourceLoader
+{
+}
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/servlet/WebappLoader.java
------------------------------------------------------------------------------
svn:keywords = Revision