https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
l

Lilly

12/04/2021, 3:10 PM
Hi, how would you name a class that acts as a single entry point to a library and is glue for multiple objetcs with different responsibilities. It's like a summary of multiple little APIs that form a greater API that is exposed to the client. My first thought was a
Facade
. Any ideas?
d

Daniel

12/04/2021, 10:03 PM
I use (Api-Name)Gateway for such abstractions. For example: DanielsSecuritySdkGateway 😄
👍 1
u

ursus

12/07/2021, 7:33 PM
I never understood the needs for this. Just provide n apis if you do n things
1
g

gildor

12/08/2021, 3:01 AM
I agree with Vlastimil. If this API is just combination of multiple APIs, why you even need this abstraction. If it an abstraction on top of other APIs which provides own business logic on top of it and doesn’t expose all included API, it doesn’t look like Gateway or Facede, it’s just another API/Repository
3 Views