public class ServerSideServiceProvider extends java.lang.Object implements IServiceProvider
Modifier and Type | Class and Description |
---|---|
static interface |
ServerSideServiceProvider.IServerSideServiceFactory<T> |
Modifier and Type | Field and Description |
---|---|
static javax.sql.DataSource |
defaultDataSource |
static java.util.Map<java.lang.String,javax.sql.DataSource> |
mailboxDataSource |
Constructor and Description |
---|
ServerSideServiceProvider(BmContext context,
java.util.Map<java.lang.Class<?>,ServerSideServiceProvider.IServerSideServiceFactory<?>> factories) |
Modifier and Type | Method and Description |
---|---|
BmContext |
getContext() |
static IServiceProvider |
getProvider(BmContext context) |
static ServerSideServiceProvider |
getProvider(SecurityContext sec) |
<T> T |
instance(java.lang.Class<T> interfaceClass,
java.lang.String... params)
Instantiate a service
|
public static javax.sql.DataSource defaultDataSource
public static java.util.Map<java.lang.String,javax.sql.DataSource> mailboxDataSource
public ServerSideServiceProvider(BmContext context, java.util.Map<java.lang.Class<?>,ServerSideServiceProvider.IServerSideServiceFactory<?>> factories)
public <T> T instance(java.lang.Class<T> interfaceClass, java.lang.String... params) throws ServerFault
IServiceProvider
instance
in interface IServiceProvider
interfaceClass
- service interfaceServerFault
- service instantiation failedpublic static ServerSideServiceProvider getProvider(SecurityContext sec)
public static IServiceProvider getProvider(BmContext context)
public BmContext getContext()
Copyright © 2021. All Rights Reserved.