Class EmptySyncServiceClientFactory
- java.lang.Object
-
- com.devonfw.module.service.common.impl.client.EmptySyncServiceClientFactory
-
- All Implemented Interfaces:
SyncServiceClientFactory
public class EmptySyncServiceClientFactory extends Object implements SyncServiceClientFactory
An empty implementation ofSyncServiceClientFactory
to make it optional. Otherwise if no provider implementation is found frameworks like spring will throw an exception (No qualifying bean of type 'java.util.Collection<SyncServiceClientFactory
>' available).- Since:
- 2021.04.003
-
-
Constructor Summary
Constructors Constructor Description EmptySyncServiceClientFactory()
-
-
-
Method Detail
-
create
public <S> S create(ServiceContext<S> context)
- Specified by:
create
in interfaceSyncServiceClientFactory
- Type Parameters:
S
- the generic type of theserviceInterface
. For flexibility and being not invasive this generic is not bound toService
(S extends Service
).- Parameters:
context
- theServiceContext
.- Returns:
- a new instance of the given
serviceInterface
that is a client stub. May benull
if this implementation does not handle services for the givenServiceContext
. - See Also:
ServiceClientFactory.create(Class)
-
-