Commit a6d59dd2c23d968c229069cfeb5b4ae6887f84b5
1 parent
408a4ab3
Exists in
master
Ajuste nos Generics
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/bootstrap/ConfigurationBootstrap.java
... | ... | @@ -57,10 +57,10 @@ import br.gov.frameworkdemoiselle.internal.configuration.ConfigurationLoader; |
57 | 57 | |
58 | 58 | public class ConfigurationBootstrap implements Extension { |
59 | 59 | |
60 | - private final List<Class<?>> cache = Collections.synchronizedList(new ArrayList<Class<?>>()); | |
60 | + private final List<Class<Object>> cache = Collections.synchronizedList(new ArrayList<Class<Object>>()); | |
61 | 61 | |
62 | - public <T> void processAnnotatedType(@Observes final ProcessAnnotatedType<T> event) { | |
63 | - final AnnotatedType<T> annotatedType = event.getAnnotatedType(); | |
62 | + public void processAnnotatedType(@Observes final ProcessAnnotatedType<Object> event) { | |
63 | + final AnnotatedType<Object> annotatedType = event.getAnnotatedType(); | |
64 | 64 | |
65 | 65 | if (annotatedType.getJavaClass().isAnnotationPresent(Configuration.class)) { |
66 | 66 | cache.add(annotatedType.getJavaClass()); |
... | ... | @@ -69,11 +69,11 @@ public class ConfigurationBootstrap implements Extension { |
69 | 69 | } |
70 | 70 | |
71 | 71 | public void afterBeanDiscovery(@Observes AfterBeanDiscovery abd, BeanManager beanManager) throws Exception { |
72 | - Class<?> proxy; | |
72 | + Class<Object> proxy; | |
73 | 73 | |
74 | - for (Class<?> config : cache) { | |
74 | + for (Class<Object> config : cache) { | |
75 | 75 | proxy = createProxy(config); |
76 | - abd.addBean(new ProxyBean((Class<Object>) proxy, beanManager)); | |
76 | + abd.addBean(new ProxyBean(proxy, beanManager)); | |
77 | 77 | } |
78 | 78 | } |
79 | 79 | ... | ... |