public static class FacadeLocator.MockableInstance extends Object
FacadeLocator
. Allows to mock the behavior of the
FacadeLocator
.
For internal use only.
Constructor and Description |
---|
MockableInstance() |
Modifier and Type | Method and Description |
---|---|
<FacadeT> io.vavr.control.Try<FacadeT> |
getFacade(Class<FacadeT> facadeInterface)
Retrieves the facade for a given interface, allowing at most one implementation to exist.
|
<FacadeT> Collection<FacadeT> |
getFacades(Class<FacadeT> facadeInterface)
Retrieves the facades for a given facade interface.
|
@Nonnull public <FacadeT> Collection<FacadeT> getFacades(@Nonnull Class<FacadeT> facadeInterface)
For internal use only.
facadeInterface
- The facade interface for which implementations should be located.@Nonnull public <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.