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> FacadeT |
getFacade(Class<FacadeT> facadeInterface)
Retrieves the facade for a given facade interface.
|
<FacadeT> Collection<FacadeT> |
getFacades(Class<FacadeT> facadeInterface)
Retrieves the facades for a given facade interface.
|
@Nonnull public <FacadeT> Collection<FacadeT> getFacades(Class<FacadeT> facadeInterface)
For internal use only.
facadeInterface
- The facade interface for which implementations should be located.@Nullable public <FacadeT> FacadeT getFacade(Class<FacadeT> facadeInterface) throws ObjectLookupFailedException
For internal use only.
facadeInterface
- The facade interface for which an implementation should be located.null
if no such
implementation can be found.ObjectLookupFailedException
- If more than one class is found that implements the facade interface.Copyright © 2019 SAP SE. All rights reserved.