Exit 1Z0-864 Java Enterprise Edition 5 Enterprise Architect Certified Master Exam (Step 1 of 3)
Question 1 of 5
0% complete
Q1 Single choice

Your web application requires access to several different services, so you created a Service Locator class to be used by the UI developers on the team. New services with different interfaces are occasionally added. Unfortunately, the caching benefits of the Service Locator class are NOT being realized because a new instance of this class is being created in every backing bean method that requires a service.

Which pattern should you apply to eliminate this problem?

  • A

    Bridge

  • B

    Singleton

  • C

    Prototype

  • D

    Factory Method

  • E

    Business Delegate

Previous Next