Commit 348cb50c57b4d1994cd5880b14066e3d57a0bf5c

Authored by Cleverson Sacramento
1 parent 747b465e
Exists in master

Ajuste no cache de configuração para ficar estático

impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/ConfigurationInterceptor.java
@@ -55,10 +55,10 @@ public class ConfigurationInterceptor implements Serializable { @@ -55,10 +55,10 @@ public class ConfigurationInterceptor implements Serializable {
55 55
56 private static final long serialVersionUID = 1L; 56 private static final long serialVersionUID = 1L;
57 57
58 - private List<Class<?>> cache = new ArrayList<Class<?>>(); 58 + private static List<Class<?>> cache = new ArrayList<Class<?>>();
59 59
60 @AroundInvoke 60 @AroundInvoke
61 - public synchronized Object manage(final InvocationContext ic) throws Exception { 61 + public static synchronized Object manage(final InvocationContext ic) throws Exception {
62 Class<?> type = ic.getTarget().getClass(); 62 Class<?> type = ic.getTarget().getClass();
63 63
64 if (!cache.contains(type)) { 64 if (!cache.contains(type)) {