Author: swd847
Date: 2010-07-22 06:46:17 -0400 (Thu, 22 Jul 2010)
New Revision: 6753
Modified:
extensions/trunk/impl/src/main/java/org/jboss/weld/extensions/defaultbean/DefaultBeanExtension.java
Log:
fix logging bug
Modified:
extensions/trunk/impl/src/main/java/org/jboss/weld/extensions/defaultbean/DefaultBeanExtension.java
===================================================================
---
extensions/trunk/impl/src/main/java/org/jboss/weld/extensions/defaultbean/DefaultBeanExtension.java 2010-07-22
10:21:24 UTC (rev 6752)
+++
extensions/trunk/impl/src/main/java/org/jboss/weld/extensions/defaultbean/DefaultBeanExtension.java 2010-07-22
10:46:17 UTC (rev 6753)
@@ -60,6 +60,8 @@
private static final Set<DefaultBeanDefinition> beans = new
HashSet<DefaultBeanDefinition>();
+ private boolean beanDiscoveryOver = false;
+
/**
* Adds a default bean with the {@link Default} qualifier
*/
@@ -78,6 +80,10 @@
public void processBean(@Observes ProcessBean<?> event)
{
+ if (beanDiscoveryOver)
+ {
+ return;
+ }
Iterator<DefaultBeanDefinition> it = beans.iterator();
while (it.hasNext())
{
@@ -92,6 +98,7 @@
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event)
{
+ beanDiscoveryOver = true;
for (DefaultBeanDefinition d : beans)
{
log.info("Installing default bean " + d.getDefaultBean());
Show replies by date