Package de.xima.fc.rpc_provider
Interface RpcHandlerProvider
-
- All Known Implementing Classes:
RpcHandlerProviderImpl
public interface RpcHandlerProviderCommon interface for RPC (Remote Procedure Call) handler providers.The RPC handler provider may be injected via CDI (Contexts and Dependency Injection).
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <THandler extends RpcHandler>
THandlergetHandler(Class<THandler> rpcHandler)Returns the RPC handler for the given class.static RpcHandlerProvidergetInstance()Returns the singleton instance of this service.voidresetHandlerProducerCache()Resets the handler cache, forcing the next call togetHandler(Class)to reload the handler.
-
-
-
Method Detail
-
getInstance
static RpcHandlerProvider getInstance()
Returns the singleton instance of this service.- Returns:
- The singleton instance of this service.
-
getHandler
@NotNull <THandler extends RpcHandler> THandler getHandler(Class<THandler> rpcHandler)
Returns the RPC handler for the given class.- Type Parameters:
THandler- The type of the RPC handler.- Parameters:
rpcHandler- The class of the RPC handler to get.- Returns:
- The RPC handler for the given class.
- Throws:
NullPointerException- if the handler is not found.
-
resetHandlerProducerCache
void resetHandlerProducerCache()
Resets the handler cache, forcing the next call togetHandler(Class)to reload the handler.
-
-