发明名称 System and method for using annotations to automatically generate a framework for a custom javaserver faces (JSF) component
摘要 A system and method for using annotations to automatically generate a framework for a custom JavaServer Faces (JSF) component is provided. Source code for a custom JSF Component class may be received, where the received source code may include annotations indicating how a declared element should be processed. For example, based on a type of annotation in the source code, the framework for the custom JSF component may be automatically generated, where the generated framework can include implementations for a Component class, a Tag Handler class, a Renderer class, a Tag Library Descriptor, a faces-config.xml file, tag unit test cases, or any other aspect of a custom JSF component. Thus, reusable, reliable, and readable custom JSF components may be easily developed at a substantially reduced development cost.
申请公布号 US9471282(B2) 申请公布日期 2016.10.18
申请号 US200711689276 申请日期 2007.03.21
申请人 CA, Inc. 发明人 Arpana Erukala;Chaturvedi Amit
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 Pillsbury Winthrop Shaw Pittman LLP 代理人 Pillsbury Winthrop Shaw Pittman LLP
主权项 1. A method to create a custom JavaServer Faces (JSF) component, the method comprising: receiving annotated source code that defines a component class for the custom JSF component of a JSF application, the annotated source code being Java code of a Java class that defines behavior of a user interface element in a web page, the custom JSF component being callable by a custom tag in a markup language document at least in part defining the web page, the annotated source code including a Java annotation designated by an @ symbol prefix corresponding to a renderer; and creating the custom JSF component, at least in part, by: identifying the annotation in the received source code; andin response to identifying the annotation, automatically generating a default decode method of the renderer that interprets inputs related to the custom JSF component and associating the renderer with the custom JSF component in a faces-config.xml file of the JSF application without manually adding a reference to the custom JSF component to the faces-config.xml file of the JSF application.
地址 New York NY US