主权项 |
1. A hardware apparatus in which an application program is installable, the hardware apparatus comprising:
a processor configured to implement
an installing unit that installs a first application program including a method in the hardware apparatus,an interface information extracting unit that analyzes an intermediate code of the first application program during the installation of the first application program and extracts interface information of the method from the intermediate code of the first application program to generate a data defined so as to provide an interface for the method, the method corresponding to identification information for accessing a Web service, andan interface providing unit that deploys the Web service as the interface for the method based on the data defined so as to provide the interface for the method after an activation of the installed first application program is started; and a display unit for receiving a request for executing a second application program that is a plug-in for carrying out a functionality expansion of the hardware apparatus so as to use a part of the function of the first application program and is additionally installed in the hardware apparatus, wherein the interface providing unit calls the method of the first application program corresponding to the identification information in response to a SOAP request including the identification information of the method sent from the second application to the interface providing unit, wherein when the display unit receives the request for executing the second application program, the second application program sends the identification information for accessing the Web service to the interface providing unit, the interface providing unit calls the method designated by the identification information from the Web service, the first application program is performed so as to process the method and returns a processed result to the Web service, the Web service returns the processed result to the interface providing unit, the interface providing unit returns a SOAP response including the processed result to the second application program, and the second application program changes a display state of the display unit in response to the processed result. |