public abstract class AbstractComponentServiceFactory extends Object implements ComponentServiceFactory
Constructor and Description |
---|
AbstractComponentServiceFactory() |
AbstractComponentServiceFactory(EndpointRewriter[] rewriters) |
Modifier and Type | Method and Description |
---|---|
com.opensymphony.oscache.base.Cache |
getCache() |
int |
getCacheCapacity() |
int |
getCacheTtlSec() |
<T> T |
getService(String invocationName,
Class<T> interfaceClass)
Get the service suitable for specified invocation name and interface class.
|
abstract <T> T |
getService(String invocationName,
long invocationId,
Endpoint endpoint,
Class<T> interfaceClass) |
boolean |
isCacheEnabled() |
void |
setCacheCapacity(int capacity) |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheTtlSec(int cacheTtlSec) |
public AbstractComponentServiceFactory()
public AbstractComponentServiceFactory(EndpointRewriter[] rewriters)
public boolean isCacheEnabled()
public void setCacheEnabled(boolean cacheEnabled)
public com.opensymphony.oscache.base.Cache getCache()
public int getCacheTtlSec()
public void setCacheTtlSec(int cacheTtlSec)
public int getCacheCapacity()
public void setCacheCapacity(int capacity)
public <T> T getService(String invocationName, Class<T> interfaceClass)
ComponentServiceFactory
getService
in interface ComponentServiceFactory
T
- type of the interface of the service.invocationName
- invocation nameinterfaceClass
- interface class