Patent ID: 9092234
Filing Date: 2015-07-28
Classification: G06F

Abstract:
1. A refactoring device comprising: a composite information storage unit which stores in a memory a plurality of composites each including, as an element, a component which defines predetermined processing or a use of an instance of other composite, a service which defines a function provided by the composite, a reference which defines a function used by the composite, and a wiring which defines a function providing relation among the component, the service, and the reference; a relocation unit stored in a memory which moves a target component included in a second composite with a first composite as a moving destination and the second composite as a moving source, the first composite and the second composite being among the plurality of composites, or moves a target component included in the first composite with the first composite as a moving source and the second composite as a moving destination, the second composite used as an instance by a component included in the first composite; and a complement unit which performs complement process after moving the target component when there is a wiring between the element and the target component in the moving source, the complement process adding a service or a reference into the second composite, setting a wiring which connects the added service or reference and the element into the moving source composite, and setting a wiring which connects the added service or reference and the moved target component into the moving destination composite, wherein when the relocation unit has moved the target component included in the second composite with the first composite as a moving destination and the second composite as a moving source, in case a wiring whose connection destination is a service of the moved target component is detected in the second composite, the complement unit adds a reference which is connectable to the detected wiring into the second composite, changes a connection destination of the detected wiring into the added reference, and adds a wiring whose connection source is the added reference and whose connection destination is the service of the moved target component into the first composite, and in case a wiring whose connection source is a reference of the moved target component is detected in the second composite, the complement unit adds a service which is connectable to the detected wiring into the second composite, changes a connection source of the detected wiring into the added service, and adds a wiring whose connection destination is the added service and whose connection source is the reference of the moved target component into the first composite.