This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit 5e1f3ff3568ec77ec8b3f2074ae8a7d1fb7e8e20 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Aug 20 15:28:04 2015 +0200 Renommage du cache de type de services --- .../java/fr/ird/observe/services/ObserveServiceFactorySupport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/observe-services-api/src/main/java/fr/ird/observe/services/ObserveServiceFactorySupport.java b/observe-services-api/src/main/java/fr/ird/observe/services/ObserveServiceFactorySupport.java index a449e99..846ac79 100644 --- a/observe-services-api/src/main/java/fr/ird/observe/services/ObserveServiceFactorySupport.java +++ b/observe-services-api/src/main/java/fr/ird/observe/services/ObserveServiceFactorySupport.java @@ -17,7 +17,7 @@ public abstract class ObserveServiceFactorySupport implements ObserveServiceFact try { return (Class<S>) serviceTypeCache.get(serviceType); } catch (ExecutionException e) { - throw new IllegalStateException("Could not get class", e); + throw new IllegalStateException("Could not get service implementation class for " + serviceType.getName(), e); } } @@ -31,14 +31,14 @@ public abstract class ObserveServiceFactorySupport implements ObserveServiceFact } } - public static LoadingCache<Class<?>, Class<?>> newAddSuffixClassCache(final String prefix, final String suffix) { + protected static LoadingCache<Class<?>, Class<?>> newServiceImplementationTypesCache(final String suffix) { return CacheBuilder.newBuilder().build(new CacheLoader<Class<?>, Class<?>>() { @Override public Class<?> load(Class<?> key) throws Exception { - String fqn = prefix + key.getSimpleName() + suffix; + String fqn = key.getName() + suffix; try { Class<?> classImpl = Class.forName(fqn); return classImpl; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.