Author: shane.bryzak(a)jboss.com
Date: 2008-07-21 10:54:31 -0400 (Mon, 21 Jul 2008)
New Revision: 59
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/init/Initialization.java
Log:
minor
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
===================================================================
---
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-07-21
14:48:42 UTC (rev 58)
+++
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-07-21
14:54:31 UTC (rev 59)
@@ -44,7 +44,6 @@
}
public void scan()
- throws ClassNotFoundException
{
URL[] urls =
ClasspathUrlFinder.findResourceBases("META-INF/web-beans.xml");
@@ -63,13 +62,20 @@
Set<String> classNames = index.get(DeploymentType.class.getName());
- for (String className : classNames)
+ try
{
- SimpleComponentModel componentModel = new SimpleComponentModel(
- new ClassAnnotatedItem(Reflections.classForName(className)),
- new MutableAnnotatedItem(null, new HashMap()), container);
- container.addComponent(new ComponentInstanceImpl(componentModel));
+ for (String className : classNames)
+ {
+ SimpleComponentModel componentModel = new SimpleComponentModel(
+ new ClassAnnotatedItem(Reflections.classForName(className)),
+ new MutableAnnotatedItem(null, new HashMap()), container);
+ container.addComponent(new ComponentInstanceImpl(componentModel));
+ }
}
+ catch (ClassNotFoundException ex)
+ {
+ throw new RuntimeException(ex);
+ }
}
public ClassLoader getClassLoader()
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/init/Initialization.java
===================================================================
---
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-07-21
14:48:42 UTC (rev 58)
+++
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-07-21
14:54:31 UTC (rev 59)
@@ -34,6 +34,6 @@
public void init()
{
-
+ deploymentStrategy.scan();
}
}