发明名称 DEFINING CLASSES AS SINGLETON CLASSES OR NON-SINGLETON CLASSES
摘要 One or more of the classes is defined using an attribute or keyword that indicates that the one or more classes may be defined as singleton classes or non-singleton classes (a class that may be instantiated more than once). A compiler system converts the class to a singleton class when the compiler system receives a command or request indicating that the class is to be defined as a singleton class. Various optimizations may be performed when one or more of the classes in the source code are defined as singleton classes. The compiler system may not convert the class to a singleton class when the compiler system receives a command or request indicating that the class is to be defined as a non-singleton class.
申请公布号 US2015234667(A1) 申请公布日期 2015.08.20
申请号 US201414181315 申请日期 2014.02.14
申请人 Red Hat, Inc. 发明人 Malcolm David H.
分类号 G06F9/445 主分类号 G06F9/445
代理机构 代理人
主权项 1. A method comprising: receiving a request to generate an application from source code; determining whether the request indicates that a class defined by the source code is to be defined as a singleton class or whether the request indicates that the class is to be defined as a non-singleton class; and when the request indicates that the class is to be defined as the singleton class, converting the class to the singleton class.
地址 Raleigh NC US