1. A method executed by a central processing unit (CPU) of implementing non-function logic for a plurality of applications extensibly and independently of functional logic for each of the plurality of applications, comprising the steps of: acquiring an association relationship between a policy and a plug-in required by the application based on a loaded policy demand configuration of the application by querying a plug-in registry containing information on description of the plug-ins and on relationships between the plug-ins based on the policy demand configuration; generating a plug-in context definition according to the acquired association relationship, the plug-in context definition being part of a plug-in context associated with the plug-in, wherein the plug-in context defines services provided by the plug-in and reference to other plug-ins related to the plug-in; generating an application runtime object based on a component definition; generating a plug-in context object based on the plug-in context definition, wherein the plug-in context object is an instantiated plug-in context definition; and associating the plug-in context object to the application runtime object so as to implement a function of the plug-in for the application.