You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/06/15 21:47:48 UTC
svn commit: r668003 -
/myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
Author: skitching
Date: Sun Jun 15 12:47:48 2008
New Revision: 668003
URL: http://svn.apache.org/viewvc?rev=668003&view=rev
Log:
Add velocity comments. Move "generated file" warning, so checkstyle header check passes.
Modified:
myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
Modified: myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm?rev=668003&r1=668002&r2=668003&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm Sun Jun 15 12:47:48 2008
@@ -1,5 +1,21 @@
-// WARNING: This file was automatically generated. Do not edit it directly,
-// or you will lose your changes.
+## Velocity template used to generate JSF1.1-compatible component classes
+## from component meta-data.
+##
+## Note that there are two types of component generation:
+## * "subclass mode" (use annotated class as a parent class)
+## * "template mode" (use annotated class as a template)
+## This template file is used for both.
+##
+## Variable $component refers to a ComponentMeta object to process
+## Variable $utils refers to an instance of MyfacesUtils.
+##
+## When "template mode" is being used then variable $innersource
+## holds a String containing all the non-abstract functions defined
+## in the annotated class.
+##
+## The java package of the generated class is always the same as
+## the package in which the annotated class exists.
+##
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -26,6 +42,8 @@
$utils.importTagClasses($component)
// generated from class $component.classSource
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
public class ${utils.getClassFromFullClass($component.className)} extends $component.superClassName
#if ($component.implements)
implements $component.implements