public class FacadeLocator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FacadeLocator.MockableInstance
Performs the facade lookup within the
FacadeLocator . |
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_CLOUD_PLATFORM_MESSAGE |
Constructor and Description |
---|
FacadeLocator() |
Modifier and Type | Method and Description |
---|---|
static <FacadeT> FacadeT |
getFacade(Class<FacadeT> facadeInterface)
Retrieves the facade for a given facade interface.
|
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 . |
public static final String UNKNOWN_CLOUD_PLATFORM_MESSAGE
public static FacadeLocator.MockableInstance getMockableInstance()
FacadeLocator.MockableInstance
.
For internal use only.
FacadeLocator.MockableInstance
.public static void setMockableInstance(FacadeLocator.MockableInstance mockableInstance)
FacadeLocator.MockableInstance
.
For internal use only.
@Nonnull public static <FacadeT> Collection<FacadeT> getFacades(Class<FacadeT> facadeInterface)
For internal use only.
facadeInterface
- The facade interface for which implementations should be located.@Nullable public static <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.