Package net.bluemind.core.rest
Class ServerSideServiceProvider
java.lang.Object
net.bluemind.core.rest.ServerSideServiceProvider
- All Implemented Interfaces:
IServiceProvider
Server-side service instantation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServerSideServiceProvider
(BmContext context, Map<Class<?>, ServerSideServiceProvider.IServerSideServiceFactory<?>> factories) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSideServiceProvider
static IServiceProvider
getProvider
(BmContext context) <T> T
Instantiate a service
-
Field Details
-
defaultDataSource
-
mailboxDataSource
-
-
Constructor Details
-
ServerSideServiceProvider
public ServerSideServiceProvider(BmContext context, Map<Class<?>, ServerSideServiceProvider.IServerSideServiceFactory<?>> factories)
-
-
Method Details
-
instance
Description copied from interface:IServiceProvider
Instantiate a service- Specified by:
instance
in interfaceIServiceProvider
- Parameters:
interfaceClass
- service interface- Returns:
- service instance
- Throws:
ServerFault
- service instantiation failed
-
getProvider
-
getProvider
-
getContext
-
setOrigin
- Specified by:
setOrigin
in interfaceIServiceProvider
-