12.07.2015 Views

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3. <strong>Architectural</strong> <strong>Pattern</strong>s 63two patterns. Shared and Active Reposi<strong>to</strong>ries are different in only one, but veryimportant detail. Active Reposi<strong>to</strong>ry provides notification service what makes itmore specialized then Shared Reposi<strong>to</strong>ry, consequently Shared Reposi<strong>to</strong>ry is moregeneral, therefore it au<strong>to</strong>matically becomes the representative <strong>of</strong> this view.Representative: Shared Reposi<strong>to</strong>ryAdaptation ViewCandidates: Microkernel, Reflection, Intercep<strong>to</strong>rSelection: Microkernel is a pattern that strongly influences architecture <strong>of</strong> system.Everything has <strong>to</strong> be organized around the kernel <strong>of</strong> the system. Communicationthrough this element is the only way <strong>to</strong> get <strong>to</strong> other elements <strong>of</strong> the pattern.Intercep<strong>to</strong>r has also a main part –Intercep<strong>to</strong>r Manager, which serves as a mainconnection <strong>to</strong> remaining parts <strong>of</strong> the system. Additionally, Intercep<strong>to</strong>r providesfunctionality allowing invocation <strong>of</strong> other elements before the target element isreached. This makes the pattern less abstract than Microkernel. The last candidate-Reflection is a very specific pattern. This pattern has the structure <strong>of</strong> thesystem build inside. The pattern is aware <strong>of</strong> the elements and relations betweenthem. There is no way <strong>to</strong> compare structure <strong>of</strong> Reflection <strong>to</strong> Microkernel. Thiscategory has two representatives –Microkernel and Reflection.Representative: Microkernel, ReflectionLanguage Extension ViewCandidates: noneSelection: The category does not have any pattern assigned so consequently thereis no candidates and no representatives.Representative: noneUser Interaction ViewCandidates: Model–View–Controller, Presentation–Abstraction–Controller, C2Selection: User Interaction View consists <strong>of</strong> three patterns. The first in rowis Model-View-Controller. The pattern was mentioned before as an example <strong>of</strong>categorisation <strong>of</strong> an architectural pattern as a design pattern. The second is PresentationAbstraction Controller (PAC). Names <strong>of</strong> both patterns underline similarapproach <strong>to</strong> the problem <strong>of</strong> user interaction. Elements <strong>of</strong> PAC pattern can bemapped <strong>to</strong> some degree <strong>to</strong> elements <strong>of</strong> MVC but in case PAC those elements arenot the main elements. The main elements <strong>of</strong> PAC pattern are agents containingpresentation, abstraction and controller parts. Those parts could be theoreticallyreplaced by MVC parts, this makes the pattern sort <strong>of</strong> a MVC agent network,therefore, MVC pattern is more general than PAC. The last pattern in this viewis C2 pattern. C2 is not as similar as PAC and MVC. C2 defines componentsthat serve as elements in MVC or PAC, but in opposite <strong>to</strong> MVC or PAC they donot have specialized function. Even if an artificial division <strong>of</strong> C2 elements in<strong>to</strong>Model / View / Controller components is made, there remain connec<strong>to</strong>rs that do

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!