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/17 18:17:41 UTC
svn commit: r668728 -
/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java
Author: skitching
Date: Tue Jun 17 09:17:40 2008
New Revision: 668728
URL: http://svn.apache.org/viewvc?rev=668728&view=rev
Log:
Add comments only
Modified:
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java?rev=668728&r1=668727&r2=668728&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/java/org/apache/myfaces/buildtools/maven2/plugin/builder/utils/MyfacesUtils.java Tue Jun 17 09:17:40 2008
@@ -33,6 +33,12 @@
import org.apache.myfaces.buildtools.maven2.plugin.builder.model.PropertyHolder;
+/**
+ * Collection of useful utility methods.
+ * <p>
+ * An instance of this type is made available to the templates used to generate
+ * output files, so that they can call these useful methods.
+ */
public class MyfacesUtils
{
public MyfacesUtils()
@@ -123,6 +129,10 @@
return name;
}
+ // TODO: perhaps this could just return a list of class names for
+ // templates to iterate over, rather than building the text itself?
+ //
+ // TODO: why are we importing tag classes into components anyway?
public static String importTagClasses(PropertyHolder component)
{
Set imports = new HashSet();
@@ -391,6 +401,11 @@
}
*/
+ /**
+ * Extract the simple class name from a fully-qualified classname.
+ * <p>
+ * Given a string like "org.apache.Foo", this method returns "Foo".
+ */
static public String getClassFromFullClass(String fullClass)
{
if (fullClass == null)