Method and system for implementing function extension of open platform
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsJing You, Yong Peng
Life of this patent
Estimating the term…
Abstract
Described are a method and a system for implementing function extension of an open platform. In the system, services that can be provided by an open platform are encapsulated and an operation interface is provided, so that plug-ins uniformly inherit the operation interface and transmit control parameters through the interface into a service entry to obtain the services. Therefore, the open platform has a simple framework and low coupling degree. Since the plug-ins are uniformly managed by a plug-in manager, the manageability and dynamic extensibility of the open platform are enhanced.
Claims22
A method for implementing function extension of an open platform, comprising:
- defining a plug-in according to function requirements of a user, and enabling the plug-in to inherit an operation interface provided by a pre-established open platform so that the plug-in is capable of transmitting a control parameter input by the user to a service entry provided by the open platform for obtaining a service provided by the open platform through the service entry;
- registering the plug-in to a pre-established plug-in manager;
- wherein the plug-in manager records information on locations of all registered plug-ins, and the plug-in manager enables the plug-in according to the information on a location which the plug-in corresponds to upon the condition that the plug-in manager is commanded to enable the plug-in;
- before the step of defining a plug-in according to function requirements of a user, the method further comprises:
- defining the service provided by the open platform as a screen management, a title bar control, and a tray control, encapsulating the service provided by the open platform to form a corresponding category, and providing the service entry in public for the plug-in to obtain the service provided by the open platform through the service entry;
- before the step of registering the plug-in to a pre-established plug-in manager, the method further comprises;
- defining the loading mechanism of the plug-in;
- the loading mechanism of the plug-in comprising a local loading and a remote loading.
A method for implementing function extension of an open platform, comprising:
- defining a service provided by an open platform as a screen management, a title bar control, and a tray control, alone or in combination, encapsulating the service provided by the open platform to form a corresponding category, and providing a service entry in public for a plug-in to obtain the service provided by the open platform through the service entry;
- defining the plug-in for transmitting a control parameter input by a user to the service entry provided by the open platform;
- providing an operation interface to the plug-in;
- registering the plug-in to a plug-in manager which is pre-established;
- registering the plug-in and recording the information on the location of the plug-in;
- transmitting the control parameter to an entry module after the plug-in receives the control parameter sent by the user;
- wherein the plug-in manager records information on locations of all registered plug-ins, and the plug-in manager enables the plug-in according to the information on a location which the plug-in corresponds to upon the condition that the plug-in manager is commanded to enable the plug-in.
A system for implementing function extension of an open platform, comprising:
- a processor;
- a memory connected with the processor, the memory comprising a plurality of programs executable by the processor, the plurality of programs comprising:
- a control interface module, configured to cause the processor to define a plug-in used for transmitting a control parameter input by a user to a service entry of the open platform;
- a plug-in manager module, configured to cause the processor to register the plug-in and recording information on locations of all registered plug-ins, and configured to enable the plug-in according to the information on a location which the plug-in corresponds to when receiving a request of enabling the plug-in, the plug-in manager module comprising:
- a register unit, configured to cause the processor to register the plug-in and record the information on the location of the plug-in;
- a calling unit, configured to cause the processor to transmit the control parameter to the entry module after the plug-in receives the control parameter sent by the user;
- a service module, configured to cause the processor to encapsulate and saving services provided by the open platform to the plug-in, the services comprising screen management, title bar control, and tray control, alone or in combination;
- an entry module, configured to cause the processor to provide an entry to the services encapsulated and saved by the service module to the plug-in so that the plug-in is used for transmitting the control parameter input by the user to the service entry.
Dependencies are inferred from the claim text.