My Question - Does anybody know how to get an instance of the [Deployment](http://docs.jboss.org/weld/javadoc/2.0/weld-spi/org/jboss/weld/bootstrap/spi/Deployment.html#loadBeanDeploymentArchive%28java.lang.Class%29) interface in **Weld**? Ideally inside the **beforeBeanDiscovery** event?

I'm trying to implement a **plug-in system** in my application where the jar is loaded by my war app. I'm using **JBoss AS 7.1** for that.

I have tried to include the JAR in the deployment process but it seems not possible unless the jar is in the WEB-INF/lib folder.

So my next move is trying to make CDI (Weld) to discover the beans inside an external JAR.

It seems CDI has no direct support to include new jars to be discovered, but Weld has a Deployment interface and a method called loadDeploymentArchive (<http://docs.jboss.org/weld/javadoc/2.0/weld-spi/org/jboss/weld/bootstrap/spi/Deployment.html#loadBeanDeploymentArchive(java.lang.Class)>)