Abstract
The aim of this paper is to present a framework that allows the generation of component-based software from object-oriented based software. The generation process is achieved via several steps starting from a transformation of the input software codes to their related UML designs; then creating the corresponding graphs whose nodes are elements such as classes and interfaces and the edges are the relationships between those elements. A clustering technique is then used to create a component for each cluster and regenerate the codes accordingly. The framework is a platform-independent and the intermediate outputs are XML-based files. It allows the using of different thresholds to secure a best solution.