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 50Meta Object Pro<strong>to</strong>colMeta Object 1Meta Object 2Meta layerElement 1 Element 2Base layerFigure 3.13: Example usage <strong>of</strong> Reflection patternistered intercep<strong>to</strong>rsInvoked Component– contains business logicPreaction Intercep<strong>to</strong>r– this intercep<strong>to</strong>r is invoked before “Invoked Component”is invokedPostaction Intercep<strong>to</strong>r– this intercep<strong>to</strong>r is invoked just after action invokedby Client is accomplished but before Client gets answerRelationships– Client invokes Intercep<strong>to</strong>r Manager, which invokes preactionintercep<strong>to</strong>rs. Then, the manager executes an action on the componentand invokes postaction intercep<strong>to</strong>rs when the action is finished (see figure3.14).PreActionIntercep<strong>to</strong>rPostActionIntercep<strong>to</strong>rClientIntercep<strong>to</strong>r ManagerInvoked ComponentFigure 3.14: Example usage <strong>of</strong> Intercep<strong>to</strong>r pattern10. Half–sync/half–asyncOverview– supports control over synchronous and asynchronous operationsin concurrent systems without reducing performance <strong>of</strong> the system.ElementsSynchronous <strong>Service</strong> Layer– contains high–level elements executing syn-

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

Saved successfully!

Ooh no, something went wrong!