protected void deployInternal(DeploymentUnit unit, BootstrapInfo info) throws DeploymentException
{
ValueMetaData ejbServicesValue = info.getEjbServices();
if (ejbServicesValue == null)
{
throw new DeploymentException("Missing ejb services: " + unit);
}
ValueMetaData ejbInjectionServicesValue = info.getEjbInjectionServices();
if (ejbInjectionServicesValue == null)
{
throw new DeploymentException("Missing ejb injection services: " + unit);
}
ValueMetaData deploymentValue = info.getDeployment();
if (deploymentValue == null)
{
throw new DeploymentException("Missing deployment: " + unit);
}
String bootstrapName = DeployersUtils.getBootstrapBeanName(unit);
BeanMetaDataBuilder bootstrap = BeanMetaDataBuilder.createBuilder(bootstrapName, "org.jboss.weld.integration.deployer.env.helpers.BootstrapBean");