public class FacadeProxyFactory extends Object
ServiceFacade
according to the type of the operation specified using annotations.| Modifier and Type | Class and Description |
|---|---|
static interface |
FacadeProxyFactory.DirectOperation
Pass the call directly to destination or source service.
|
static interface |
FacadeProxyFactory.ReadOperation
Indicates this api performs a read operation.
|
static interface |
FacadeProxyFactory.Secret
Secret parameters are logged as ****.
|
static interface |
FacadeProxyFactory.WriteOperation
Indicates this api performs a write operation.
|
| Constructor and Description |
|---|
FacadeProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends D,D extends SharedStoreSetter> |
createFacadeProxy(D legacySvc,
D lightblueSvc,
Class<T> facadeInterface,
Properties properties)
Create a facade proxy.
|
static <T extends D,D extends SharedStoreSetter> |
createFacadeProxy(ServiceFacade<D> svcFacade,
Class<T> facadeInterface)
Create facade proxy from
ServiceFacade. |
public static <T extends D,D extends SharedStoreSetter> D createFacadeProxy(ServiceFacade<D> svcFacade, Class<T> facadeInterface) throws InstantiationException, IllegalAccessException
ServiceFacade.
Java does not allow typed argument with both typed and static bounds,
i.e. SharedStoreSetter, I'm using
SharedStoreSetter. It does
not logically belong to the facade interface, but I guess I can live with
that.svcFacade - initialized with services implementing the
facadeInterfacefacadeInterface - has to implement SharedStoreSetterInstantiationExceptionIllegalAccessExceptionpublic static <T extends D,D extends SharedStoreSetter> D createFacadeProxy(D legacySvc, D lightblueSvc, Class<T> facadeInterface, Properties properties) throws InstantiationException, IllegalAccessException
SharedStoreSetter, I'm using
SharedStoreSetter. It does
not logically belong to the facade interface, but I guess I can live with
that.legacySvc - has to implement facadeInterfacelightblueSvc - has to implement facadeInterfacefacadeInterface - has to implement SharedStoreSetterproperties - InstantiationExceptionIllegalAccessExceptionCopyright © 2016. All rights reserved.