主权项 |
1. A computer system comprising:
one or more processors; a configuration unit to configure the application program for deployment into a runtime execution environment, the configuration unit including a plurality of pre-determined conventions arranged into a plurality of convention sets, each convention set being associated with a respective resource of the computer system, each resource being a library, each convention providing a fragment of a configuration and being associated with one or more triggers for selecting the respective convention; a non-transitory computer readable medium storing programming instructions operable, when executed, to cause the one or more processors to perform operations comprising:
dividing the application program into a plurality of bundles, each bundle including one or more classes of computer code and forming a portion of the application program;examining, by the configuration unit, each of the bundles individually, including determining declared class dependency in each bundle;determining, by the configuration unit and based on a result of the examining, that a class dependency of a first bundle of the plurality of bundles matches one or more triggers each being associated with a respective convention;selecting, by the configuration unit, the one or more conventions associated with the one or more matching triggers; andautomatically generating a system configuration from the selected one or more conventions and configuring the application program using the system configuration, including selecting resources corresponding to each convention set that includes a selected convention, whereby dependencies of the application program upon the resources are configured based on at least the automatically generated system configuration. |