org.richfaces.cdk.annotations
Annotation Type RendererSpecificComponent


@Retention(value=SOURCE)
public @interface RendererSpecificComponent

That annotation defines class that is generated from the concrete class defined in the JsfComponent

Author:
asmirnov@exadel.com

Optional Element Summary
 java.lang.String[] attributes
          

defines fragments of faces-config.xml that contain standard attribute definitions.

 Description description
          

Description used by IDE.

 Facet[] facets
          

Component facets.

 java.lang.String generate
          

Name of the generated component implementation class.

 java.lang.Class<?>[] interfaces
          

Interfaces that should be implemented in the generated component class.

 JsfRenderer renderer
          

JsfRenderer associated with this component.

 Tag[] tag
          

View Description Language, JSP or Facelets, tags.

 Test test
          

Cenerated Junit test.

 java.lang.String type
          

Type of the component.

 

type

public abstract java.lang.String type

Type of the component. This is mandatory parameter because CDK uses component-type as primary key for components library model.

TODO if this value is an empty, component type will be inferred from class name.

Returns:
component type.
Default:
""

generate

public abstract java.lang.String generate

Name of the generated component implementation class.

Returns:
Default:
""

description

public abstract Description description

Description used by IDE.

Returns:
Default:
@org.richfaces.cdk.annotations.Description

test

public abstract Test test

Cenerated Junit test.

Returns:
Default:
@org.richfaces.cdk.annotations.Test(testClass="")

renderer

public abstract JsfRenderer renderer

JsfRenderer associated with this component.

Returns:
Default:
@org.richfaces.cdk.annotations.JsfRenderer

tag

public abstract Tag[] tag

View Description Language, JSP or Facelets, tags.

Returns:
Default:
@org.richfaces.cdk.annotations.Tag

facets

public abstract Facet[] facets

Component facets.

Returns:
Default:
{}

attributes

public abstract java.lang.String[] attributes

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.

Returns:
Default:
{}

interfaces

public abstract java.lang.Class<?>[] interfaces

Interfaces that should be implemented in the generated component class. CDK processes all Attribute and Facet annotations in these interfaces

Returns:
Default:
{}


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.