• Card 22 / 24: Your Parcel delivery company is expanding it's existing web application. Currently the clients can track their parcels using web browsers, and your company wants to expose it's business to it's partners as web-services. However; when you inspected the code base, you discovered that the application passes HttpServletRequest parameters to the business tier for further processing. Your job is to refactor this existing code base to avoid duplicating the business logic to handle the two request channels (http and web service requests). Which refactoring is appropriate for this case without code duplication?
    A) Use front controller pattern
    B) Use context object pattern
    C) Use proxy pattern
    D) Use service broker pattern

    Answer:
    B) Use context object pattern

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Hide Choices Interactive Question Quiz Home Page
https://www.jobilize.com/enterprise-java-patterns

Enterprise Java Design Patterns

Author:

Access: Public Instant Grading

Quiz Permalink:
https://www.jobilize.com/enterprise-java-patterns
Question Permalink:
https://www.jobilize.com/context-object-pattern
Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Danielle Stephens
Start Quiz
Yasser Ibrahim
Start Quiz
Edgar Delgado
Start Quiz
Lakeima Roberts
Start Quiz
Kimberly Nichols
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/enterprise-java-patterns" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>