public class UmbrellaComponentServiceFactory extends AbstractComponentServiceFactory implements ComponentServiceFactory
| Constructor and Description |
|---|
UmbrellaComponentServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,AbstractComponentServiceFactory> |
getFactories() |
<T> T |
getService(String invocationName,
Class<T> interfaceClass)
Get the service suitable for specified invocation name and interface class.
|
<T> T |
getService(String invocationName,
long invocationId,
Endpoint endpoint,
Class<T> interfaceClass) |
void |
setCacheCapacity(int cacheCapacity) |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheTtlSec(int cacheTtlSec) |
void |
setFactories(Map<String,AbstractComponentServiceFactory> factories) |
getCache, getCacheCapacity, getCacheTtlSec, isCacheEnabledpublic void setCacheEnabled(boolean cacheEnabled)
setCacheEnabled in class AbstractComponentServiceFactorypublic void setCacheCapacity(int cacheCapacity)
setCacheCapacity in class AbstractComponentServiceFactorypublic void setCacheTtlSec(int cacheTtlSec)
setCacheTtlSec in class AbstractComponentServiceFactorypublic <T> T getService(String invocationName, Class<T> interfaceClass)
ComponentServiceFactorygetService in interface ComponentServiceFactorygetService in class AbstractComponentServiceFactoryT - type of the interface of the service.invocationName - invocation nameinterfaceClass - interface classpublic <T> T getService(String invocationName, long invocationId, Endpoint endpoint, Class<T> interfaceClass)
getService in class AbstractComponentServiceFactorypublic Map<String,AbstractComponentServiceFactory> getFactories()
public void setFactories(Map<String,AbstractComponentServiceFactory> factories)