Shared Flashcard Set

Details

Design Patterns - Benefits
n/a
8
Computer Science
Undergraduate 1
05/27/2013

Additional Computer Science Flashcards

 


 

Cards

Term
What is the benefit of a singleton?
Definition
It reduces the demand for server resources.
Term
What is the benefit of a DAO?
Definition
It provides a simple, consistent API for data access that does not require knowledge of other technologies.
Term

What is the benefit of a factory?

(Hint: 2)

Definition

- It reduces duplication of code.

- Allows clients to create complex objects easily.

Term

What is the benefit of a Service Locator?

(Hint: 5)

Definition

- Abstract complexity of the service creation and lookup.

- Provides uniform service access to clients.

- Facilitates use of EJB.

- Improves network performance.

- Caches initial context objects for client.

Term

What is the benefit of a front controller?

(Hint: 3)

Definition

- It avoids duplication of control logic.

- Applies common logic to multiple request.

- Provides a centralized access point into the system.

Term
What is the benefit of a Model 2?
Definition
Keeps database access and business logic out of the view layer.
Term

What is the benefit of a business delegate?

(Hint: 5)

Definition

- The client becomes transparent to naming and lookup service.

- Hides remoteness.

- Exposes a simpler, uniform interface to business tier.

- Reduces coupling between client and business services.

- Translates business service exceptions to application exceptions.

Term

What is the benefit of the session facade?

(Hint: 2)

Definition

- It reduces business complexity presented to the client.

- Increases application speed for remote clients by reducing the number of remote calls.

Supporting users have an ad free experience!