摘要 |
A method and a device for component expansion are provided, which relate to the field of software development, can avoid additional upgrade script development during upgrading an underlying component, and eliminate the coupling and relevance modification of an upper component and the underlying component. The method comprises: obtaining the description file of each component loaded in the process of software system starting; analyzing the description file of each component, and obtaining the expansion identification information of the profile of each component; loading the profiles belonging to the same base class to the memory according to the base class identification in the expansion identification information and combining them to get an expanded profile. The technical solution is mainly used in the process of component expansion. |