Author: alexsmirnov
Date: 2010-06-21 18:38:29 -0400 (Mon, 21 Jun 2010)
New Revision: 17656
Added:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererSpecificComponent.java
Removed:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SubComponent.java
Modified:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/JsfComponent.java
Log:
Rename SubComponent to RendererSpecificComponent
Modified:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/JsfComponent.java
===================================================================
---
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/JsfComponent.java 2010-06-21
22:32:30 UTC (rev 17655)
+++
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/JsfComponent.java 2010-06-21
22:38:29 UTC (rev 17656)
@@ -172,6 +172,6 @@
* <p class="changed_added_4_0"></p>
* @return
*/
- public SubComponent[] components() default {};
+ public RendererSpecificComponent[] components() default {};
}
Copied:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererSpecificComponent.java
(from rev 17654,
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SubComponent.java)
===================================================================
---
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererSpecificComponent.java
(rev 0)
+++
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererSpecificComponent.java 2010-06-21
22:38:29 UTC (rev 17656)
@@ -0,0 +1,133 @@
+/*
+ * $Id$
+ *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.cdk.annotations;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+/**
+ * <p class="changed_added_4_0">
+ * That annotation defines class that is generated from the concrete class defined in
the {@link JsfComponent}
+ * </p>
+ *
+ * @author asmirnov(a)exadel.com
+ */
+(a)Retention(RetentionPolicy.SOURCE)
+public @interface RendererSpecificComponent {
+
+
+
+ /**
+ * <p class="changed_added_4_0">
+ * Type of the component. This is mandatory parameter because CDK uses
<em>component-type</em> as primary key for
+ * components library model.
+ * </p>
+ * <p class="todo">
+ * TODO if this value is an empty, component type will be inferred from class name.
+ * </p>
+ *
+ * @return component type.
+ */
+ public String type() default "";
+
+
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the generated component implementation class.
+ * </p>
+ *
+ * @return
+ */
+ public String generate() default "";
+
+ /**
+ * <p class="changed_added_4_0">
+ * Description used by IDE.
+ * </p>
+ *
+ * @return
+ */
+ public Description description() default @Description();
+
+ /**
+ * <p class="changed_added_4_0">
+ * Cenerated Junit test.
+ * </p>
+ *
+ * @return
+ */
+ public Test test() default @Test(testClass = "");
+
+ /**
+ * <p class="changed_added_4_0">
+ * JsfRenderer associated with this component.
+ * </p>
+ *
+ * @return
+ */
+ public JsfRenderer renderer() default @JsfRenderer();
+
+ /**
+ * <p class="changed_added_4_0">
+ * View Description Language, JSP or Facelets, tags.
+ * </p>
+ *
+ * @return
+ */
+ public Tag[] tag() default { @Tag };
+
+
+ /**
+ * <p class="changed_added_4_0">
+ * Component facets.
+ * </p>
+ *
+ * @return
+ */
+ public Facet[] facets() default {};
+
+ /**
+ * <p class="changed_added_4_0">
+ * defines fragments of faces-config.xml that contain standard attribute definitions.
CDK also tries to read
+ * META-INF/cdk/attributes/[classname].xml file for all component superclasses and
interfaces, therefore it is not
+ * necessary to explicit include definitions for UIComponent and any other standard
JSF classes. CDK defines couple
+ * of its own "urn" namespaces: "urn:resource:" for classpath
resources, "urn:config:" for for project configuration
+ * folder and "urn:attributes:" for META-INF/cdk/attributes/ in the
annotations library.
+ * </p>
+ *
+ * @return
+ */
+ public String[] attributes() default {};
+
+ /**
+ * <p class="changed_added_4_0">
+ * Interfaces that should be implemented in the generated component class. CDK
processes all {@link Attribute} and
+ * {@link Facet} annotations in these interfaces
+ * </p>
+ *
+ * @return
+ */
+ public Class<?>[] interfaces() default {};
+
+}
Property changes on:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererSpecificComponent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
Deleted:
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SubComponent.java
===================================================================
---
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SubComponent.java 2010-06-21
22:32:30 UTC (rev 17655)
+++
root/cdk/branches/RF8755/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SubComponent.java 2010-06-21
22:38:29 UTC (rev 17656)
@@ -1,133 +0,0 @@
-/*
- * $Id$
- *
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces.cdk.annotations;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-
-/**
- * <p class="changed_added_4_0">
- * That annotation defines class that is generated from the concrete class defined in
the {@link JsfComponent}
- * </p>
- *
- * @author asmirnov(a)exadel.com
- */
-(a)Retention(RetentionPolicy.SOURCE)
-public @interface SubComponent {
-
-
-
- /**
- * <p class="changed_added_4_0">
- * Type of the component. This is mandatory parameter because CDK uses
<em>component-type</em> as primary key for
- * components library model.
- * </p>
- * <p class="todo">
- * TODO if this value is an empty, component type will be inferred from class name.
- * </p>
- *
- * @return component type.
- */
- public String type() default "";
-
-
- /**
- * <p class="changed_added_4_0">
- * Name of the generated component implementation class.
- * </p>
- *
- * @return
- */
- public String generate() default "";
-
- /**
- * <p class="changed_added_4_0">
- * Description used by IDE.
- * </p>
- *
- * @return
- */
- public Description description() default @Description();
-
- /**
- * <p class="changed_added_4_0">
- * Cenerated Junit test.
- * </p>
- *
- * @return
- */
- public Test test() default @Test(testClass = "");
-
- /**
- * <p class="changed_added_4_0">
- * JsfRenderer associated with this component.
- * </p>
- *
- * @return
- */
- public JsfRenderer renderer() default @JsfRenderer();
-
- /**
- * <p class="changed_added_4_0">
- * View Description Language, JSP or Facelets, tags.
- * </p>
- *
- * @return
- */
- public Tag[] tag() default { @Tag };
-
-
- /**
- * <p class="changed_added_4_0">
- * Component facets.
- * </p>
- *
- * @return
- */
- public Facet[] facets() default {};
-
- /**
- * <p class="changed_added_4_0">
- * defines fragments of faces-config.xml that contain standard attribute definitions.
CDK also tries to read
- * META-INF/cdk/attributes/[classname].xml file for all component superclasses and
interfaces, therefore it is not
- * necessary to explicit include definitions for UIComponent and any other standard
JSF classes. CDK defines couple
- * of its own "urn" namespaces: "urn:resource:" for classpath
resources, "urn:config:" for for project configuration
- * folder and "urn:attributes:" for META-INF/cdk/attributes/ in the
annotations library.
- * </p>
- *
- * @return
- */
- public String[] attributes() default {};
-
- /**
- * <p class="changed_added_4_0">
- * Interfaces that should be implemented in the generated component class. CDK
processes all {@link Attribute} and
- * {@link Facet} annotations in these interfaces
- * </p>
- *
- * @return
- */
- public Class<?>[] interfaces() default {};
-
-}