摘要:
A method and apparatus is provided for annotation-based behavior extensions. A primary contributor is identified based on a first attribute. Behaviors from a secondary contributor are linked to the primary contributor once a second attribute is examined. Finally, one or more files are generated using the linked behaviors from the primary and secondary contributors.
摘要:
A method, apparatus, and computer instructions for defining queries in terms of data objects. A simplified query syntax is introduced for querying across a set of data objects which does not require the duplication of data object shape information. A data object is first defined by providing a name for the data object. Attribute and relationship information is added to the data object, wherein the information defines the shape of the data object. When a query is created, it is defined in terms of data objects. The query is processed, wherein processing the query includes extracting the shape of the data objects using the attribute information in the query. The query is expanded by adding additional syntax to the query based on relationship information defined for the data objects and then executed in its expanded form.
摘要:
A method and apparatus for generating a service data object based service pattern for an EJB model is provided. Definitions of session bean façade, SDOs, and queries are defined in entity beans. When the definitions are processed, SDOs, related SDOs, and queries for SDOs are added to the session bean façade. At run time, a client may manipulate the SDOs and apply changes to the SDOs via a mediator obtained from a mediator cache. The mediator persists the SDOs to a data graph without interfering the entity bean.
摘要:
The invention, which may be a kind of annotations processor, detects zero or more tagsets turned on or selected at runtime. The annotations adapter reads an abstract unit from a java file, and if an annotation of the abstract unit has a tag that is among the tags of a turned on tagset, then the annotations adapter may generate an artifact showing the influence of the annotation. Such a process may continue until there are no more abstract units to process. Comments or annotations that fail to be tagged with a tag of a selected tagset may, nevertheless, be mentioned with a kind of ‘place-holder’ indicating that such comments exist.
摘要:
A method and system for incrementally processing program annotations is provided. A source model, a doclet model and a semantic model are used to represent and transform annotations incrementally. The source model represents actual types, fields, and methods that contain annotations. The doclet model includes doclet objects representing tags and attributes for a type, field, and method for a given namespace. Tag handlers registered for the given namespace detect changes in annotations and create or update doclet objects based on the changes. Changes in the doclet model are then transformed into the semantic model and may be persisted for restoration.
摘要:
A method for embedding behavior tags in a source code so that a computer can choose the appropriate implementation technology to execute the source code comprising a Configuration Program (CP) and a Deployment Program (DP). The CP allows a user to define and modify a plurality of behavior tags in the behavior tag definitions. The CP also allows the user to define and modify the preferences as to the implementation technologies in an implementation technology preference list. The user then creates the source code with embedded behavior tags. The DP reads the source code and automatically selects the appropriate implementation technology based on the behavior tags. The DP gives preference to implementation technologies according to the implementation technology preference list. The result is that the user does not have to specify the implementation technology for the source code or configure the behavior tags to a specific implementation technology.
摘要:
Middleware application for managing communication between a client and a web service so that changes in the web service information, such as a change in the web service location, are addressed by the middleware application is disclosed. A developer registers web services in a repository. The middleware application generates a web service proxy based on web service information entered in the repository, and generates a new web service proxy when the web service information changes. The developer can then write code for client applications without the need to change code when changes are made in the web service information. Responsive to a client request, the middleware application accesses the repository to match the request with a web service. The middleware application transmits the request through the web service proxy to the web service. The method for using the middleware application comprises entering web service information in a repository, generating a web service proxy for a web service registered in the repository, and storing the web service proxy, so that changes in web service information, such as the web service location, will cause a new web service proxy to be generated.
摘要:
The present invention provides methods, apparatus and computer instructions for a container managed persistent support architecture that meets the Enterprise Java Bean (EJB) Specification. The support architecture provides application programmers a model for balancing generated components with runtime code to better optimize flexibility and efficiency of applications. Six generated components: concrete bean, bean adaptor binding, injector, extractor, data cache entry and function set, are used in combination with runtime code to perform typical operations of CMP entity beans.
摘要:
The present invention provides methods, apparatus and computer instructions for a container managed persistent support architecture that meets the Enterprise Java Bean (EJB) Specification. The support architecture provides application programmers a model for balancing generated components with runtime code to better optimize flexibility and efficiency of applications. Six generated components: concrete bean, bean adaptor binding, injector, extractor, data cache entry and function set, are used in combination with runtime code to perform typical operations of CMP entity beans.