Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:36:17+00:00 2026-06-09T20:36:17+00:00

In our application (C#), the facade is used as the core’s API – the

  • 0

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:

  1. Assuming one of my core objects, which the facade wraps, has a recursive bit in it? For example, the facade provides a ‘GetX’ from a tree, and each node needs to GetX from its subtree. Should this node use the facade’s ‘GetX’?
  2. Should the facade expose core objects to the application? E.g., the user wants to build a tree, add nodes, print the tree, calculate things on it etc. Should the application use the tree object or should it ask the facade to create it, save it, pring it etc.?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:36:18+00:00Added an answer on June 9, 2026 at 8:36 pm

    A facade is an object that provides a simplified interface to a larger
    body of code.

    Therefore, keep it simple.

    1. No. Encapsulate the Facade within itself. I assume you have a private implementation for retrieving the tree, use this internally, exposing only the public method which returns the populated object (see point 2).

    2. No. The facade should do everything, otherwise there is little point creating it. You might want to create a DTO that can be used within the facade methods, but you should not expose the core objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our application has many controls that are created dynamically. For example, a navigation pane
Our application JSF2/weblogic10.3.4 has different client folders deployed in root context as below. app->webapp->ClientA->index.jsf
Our application does some relatively complex stuff, resulting in each request generating somewhere between
Our application connects to a SQL Server database. There is a column that is
I have a Java web application that uses the SLF4J logging facade. To date,
Our application server has a folder used to store attachments uploaded by customer. This
Our application is Windows Service (native .EXE written in C++) that calls stored procedures
Our application uses the PayPal api, in order to test it PayPal needs to
Our application is structured something like: UI <--> REST API <--> Workflow <--> Business

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.