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, isCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
setCacheEnabled
in class AbstractComponentServiceFactory
public void setCacheCapacity(int cacheCapacity)
setCacheCapacity
in class AbstractComponentServiceFactory
public void setCacheTtlSec(int cacheTtlSec)
setCacheTtlSec
in class AbstractComponentServiceFactory
public <T> T getService(String invocationName, Class<T> interfaceClass)
ComponentServiceFactory
getService
in interface ComponentServiceFactory
getService
in class AbstractComponentServiceFactory
T
- 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 AbstractComponentServiceFactory
public Map<String,AbstractComponentServiceFactory> getFactories()
public void setFactories(Map<String,AbstractComponentServiceFactory> factories)