Questions tagged [facade]

The Facade pattern is one of the Gang of Four's structural design patterns.

The facade pattern is a software engineering design pattern commonly used with Object-oriented programming. The name is by analogy to an architectural facade.

It is one of the Gang of Four's structural , first published in Gamma et al.'s book "Design Patterns: Elements of Reusable Object-Oriented Software".

From Wikipedia: The Facade pattern provides a unified interface to a set of interfaces in a subsystem. It defines a higher-level interface that makes the subsystem easier to use.


References

392 questions
0
votes
0 answers

Permissable instanceof usage in the context of Facade like APIs

Those of us who worship at the Church/Mosque/Synagogue/etc. of Object-Oriented design often spit in the face of instanceof. My question is whether it is permissible, and moreover, preferable in the given context where you want to give another…
Darius
  • 5,180
  • 5
  • 47
  • 62
0
votes
4 answers

facade design pattern

Lately I've been trying to follow the TDD methodology, and this results in lot of subclasses so that one can easily mock dependencies, etc. For example, I could have say a RecurringProfile which in turn has methods / operations which can be applied…
Karl Cassar
  • 6,043
  • 10
  • 47
  • 84
0
votes
1 answer

Design Pattern - Facade

I have been asked to produce a basic Design Pattern for an online commerce system (Amazon, Play.com etc..) and I have chosen to concentrate on the Facade Pattern as I feel this is pattern is used mostly throughout the system. This is what I have so…
Phorce
  • 2,632
  • 13
  • 43
  • 76
0
votes
2 answers

where does the class facade will be in my directory MVC?

I have a question related to design patterns, I am developing an MVC app in php, but I dont know where will be the class facade, if I am using an mvc pattern, I think that the facade have to be in the model, but I dont know??, where to put the class…
bentham
  • 1,701
  • 3
  • 20
  • 32
0
votes
3 answers

Facade design pattern usage

In our application (C#), the facade is used as the core's API - the facade will be used by the App itself to do stuff with the core. Knowing that, here are my questions: Assuming one of my core objects, which the facade wraps, has a recursive bit…
Noich
  • 14,631
  • 15
  • 62
  • 90
0
votes
1 answer

Forms Authentication Cookie and WCF

I have an asp.net 4.0 application (client) that makes ajax/json calls to a http facade that then passes on the calls to our wcf service layer. Users must authenticate on the client using forms authentication. The idea then being that the…
0
votes
1 answer

JSF2.0 State_Saving_Method client issues

Im using Mojarra 2.1.3, Netbeans 7.0.1, primefaces 3.2. I am currently in a quandary whether to use STATE_SAVING_METHOD client or server. Currently Im setting the saving method to client. And this involves me doing adjustment to seriazibility of…
frazkok
  • 49
  • 1
  • 2
  • 11
0
votes
1 answer

I need help imlementing a Facade+Mediator for persistence in a NODEJS program using MongoDB (and mongoose)

I'm a really n00b playing with NodeJS and MongoDB. I want to build something that could be a really big application. So I try to design the application as much decoupled as I can. I see it would be nice abstracting the persistence layer for keeping…
Dredok
  • 807
  • 1
  • 9
  • 30
0
votes
1 answer

Java EE - Getting InvocationTargetException while calling Remote Facade?

I am trying to make an Enterprise Application but facing a very strange error. Whenever i try to call enterprise application's facade from any class other than Main, I am get an InvocationTargetException. Here is my code: - public class…
Varundroid
  • 9,135
  • 14
  • 63
  • 93
-1
votes
1 answer

Is 'duck typing' in Python also a 'Facade Design Pattern'?

Whenever we are able to call one function from different classes, would it be considered as Facade design pattern? class Mobile: def __init__(self, name, ram, memory): self.name = name self.ram = ram self.memory = memory …
Rohit_VE
  • 109
  • 5
-1
votes
3 answers

where do i find the laravel auth facade class implementation

i am trying to find the auth facade class implementation which contains its methods (check(),user() etc.) . I have been reffered to the laravel facade class reference in the laravel docs but none of those classes (authmanager in this case) seem…
-1
votes
1 answer

Unable To Access Private Properties In JavaScript Facade Pattern

The Problem In my "private" object for the facade pattern, I am defining methods and properties. When calling a method in this "private" object, I am getting Uncaught Typerror's saying that the method I am calling is not a function. The Code var…
jayrue
  • 151
  • 1
  • 11
-1
votes
1 answer

Where I will implement Business Facade?

I am a bit confused where I should implement the business Facade? In a 3 tier distributed model, I want to add a facade in between presentation tier and the business logic tier. They are running on a separate systems. Now my question where should I…
SBha
  • 1
  • 2
-1
votes
2 answers

Facade pattern vs Delegate pattern; In Java?

I have been referred to the facade design pattern in web a lot. Literally it is clear to imagine what a facade bean is. When it comes to implementation though, I am unable to make any difference from delegate pattern. Can any one explain the…
Arun
  • 825
  • 4
  • 14
  • 31
-2
votes
1 answer

What is Facades and how it works? (Specially for Laravel)

Can you please describe elaborately about Facade?
Abhijit Mondal Abhi
  • 1,364
  • 4
  • 15
  • 34
1 2 3
26
27