public class RemoteServiceFactory extends Object implements ServiceFactory
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteServiceFactory.RemoteInvocationHandler |
| Modifier and Type | Field and Description |
|---|---|
protected String |
authenticationToken |
static Set<String> |
BYPASSED_METHODS |
protected AgrosystWebConfig |
config |
static com.google.common.base.Function<Class<?>,String> |
GET_SERVICE_URI |
protected static AgrosystGsonSupplier |
gsonSupplier |
protected com.thoughtworks.paranamer.CachingParanamer |
paranamer |
protected static String |
SERVICES_PREFIX |
__PARANAMER_DATA| Constructor and Description |
|---|
RemoteServiceFactory(AgrosystWebConfig config,
String authenticationToken) |
| Modifier and Type | Method and Description |
|---|---|
AgrosystGsonSupplier |
getGsonSupplier() |
<I> I |
newInstance(Class<I> clazz) |
<E extends AgrosystService> |
newService(Class<E> clazz) |
protected static void |
resetGsonSupplier(Map<String,String> map) |
protected static final String SERVICES_PREFIX
public static final com.google.common.base.Function<Class<?>,String> GET_SERVICE_URI
protected static AgrosystGsonSupplier gsonSupplier
protected AgrosystWebConfig config
protected String authenticationToken
protected com.thoughtworks.paranamer.CachingParanamer paranamer
public RemoteServiceFactory(AgrosystWebConfig config, String authenticationToken)
public AgrosystGsonSupplier getGsonSupplier()
public <E extends AgrosystService> E newService(Class<E> clazz)
newService in interface ServiceFactorypublic <I> I newInstance(Class<I> clazz)
newInstance in interface ServiceFactoryCopyright © 2013 Inra. All rights reserved.