[webbeans-commits] Webbeans SVN: r89 - in ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans: init and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sun Aug 10 11:09:59 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-08-10 11:09:58 -0400 (Sun, 10 Aug 2008)
New Revision: 89
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java
Log:
No need to check this, we are in control
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-08-10 15:02:38 UTC (rev 88)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-08-10 15:09:58 UTC (rev 89)
@@ -37,16 +37,10 @@
public static String[] DEFAULT_IGNORED_PACKAGES = {"java", "com.sun", "sun", "javasssit"};
- public DeploymentStrategy(ClassLoader classLoader, Container container)
+ public DeploymentStrategy(ClassLoader classLoader, ContainerImpl container)
{
this.classLoader = classLoader;
-
- if (!(container instanceof ContainerImpl))
- {
- throw new IllegalArgumentException("Container must be an instance of ContainerImpl");
- }
-
- this.container = (ContainerImpl) container;
+ this.container = container;
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-08-10 15:02:38 UTC (rev 88)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-08-10 15:09:58 UTC (rev 89)
@@ -27,7 +27,7 @@
public Initialization create()
{
- Container container = new ContainerImpl(null);
+ ContainerImpl container = new ContainerImpl(null);
servletContext.setAttribute(WEBBEANS_CONTAINER_KEY, container);
More information about the weld-commits
mailing list