摘要 |
A method for processing program component coupling, and a related apparatus are disclosed. The method includes : instantiating a component container and N components; registering the instantiated N components with the instantiated component container; querying, by using a first component when component invoking logic in the first component is triggered, whether a second component is registered with the component container, where the component invoking logic and the second component have a mapping relationship; and obtaining, if it is found that the second component is registered with the component container, a pointer of the second component by using the component container, and invoking the second component based on the pointer of the second component to perform a corresponding operation. |