Weld and other CDI impls allow an embedded mode.
See http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#d0e5417 for example
Create a standard way to bootstrap a CDI container outside of a Java EE environment for unit testing and other JSRs that need CDI features
Define bean discovery rules when CDI in Java SE
Specify context control and built-in context behavior in Java SE
Support multiple container in Java SE
Split specification into "core" and "Java EE integration"
Add instance() method to BeanManager