public class FacadeLocator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FacadeLocator.MockableInstance
Performs the facade lookup within the
FacadeLocator . |
Constructor and Description |
---|
FacadeLocator() |
Modifier and Type | Method and Description |
---|---|
static <FacadeT> io.vavr.control.Try<FacadeT> |
getFacade(Class<FacadeT> facadeInterface)
Retrieves the facade for a given interface, allowing at most one implementation to exist.
|
static <FacadeT> Collection<FacadeT> |
getFacades(Class<FacadeT> facadeInterface)
Retrieves the facades for a given facade interface.
|
static FacadeLocator.MockableInstance |
getMockableInstance()
Returns the current
FacadeLocator.MockableInstance . |
static void |
setMockableInstance(FacadeLocator.MockableInstance mockableInstance)
Replaces the default
FacadeLocator.MockableInstance . |
@Nonnull public static FacadeLocator.MockableInstance getMockableInstance()
FacadeLocator.MockableInstance
.
For internal use only.
FacadeLocator.MockableInstance
.public static void setMockableInstance(@Nonnull FacadeLocator.MockableInstance mockableInstance)
FacadeLocator.MockableInstance
.
For internal use only.
@Nonnull public static <FacadeT> Collection<FacadeT> getFacades(@Nonnull Class<FacadeT> facadeInterface)
For internal use only.
facadeInterface
- The facade interface for which implementations should be located.@Nonnull public static <FacadeT> io.vavr.control.Try<FacadeT> getFacade(@Nonnull Class<FacadeT> facadeInterface)
For internal use only.
facadeInterface
- The facade interface for which an implementation should be located.Try
of the instance of the class that implements the facade interface.Copyright © 2020 SAP SE. All rights reserved.