@@ -60,24 +60,24 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
60
60
final ModuleSpecification moduleSpecification = deploymentUnit .getAttachment (Attachments .MODULE_SPECIFICATION );
61
61
62
62
//always add EE API
63
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , EJB_API , false , false , true , false ));
63
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , EJB_API ). setImportServices ( true ). build ( ));
64
64
//we always give them the Jakarta Enterprise Beans client
65
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , EJB_CLIENT , false , false , true , false ));
66
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , EJB_NAMING_CLIENT , false , false , true , false ));
67
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , EJB_IIOP_CLIENT , false , false , false , false ));
65
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , EJB_CLIENT ). setImportServices ( true ). build ( ));
66
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , EJB_NAMING_CLIENT ). setImportServices ( true ). build ( ));
67
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , EJB_IIOP_CLIENT ). build ( ));
68
68
69
69
//we always have to add this, as even non-ejb deployments may still lookup IIOP ejb's
70
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , EJB_SUBSYSTEM , false , false , true , false ));
71
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , HTTP_EJB , false , false , true , false ));
72
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , HTTP_NAMING , false , false , true , false ));
73
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , HTTP_TRANSACTION , false , false , true , false ));
70
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , EJB_SUBSYSTEM ). setImportServices ( true ). build ( ));
71
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , HTTP_EJB ). setImportServices ( true ). build ( ));
72
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , HTTP_NAMING ). setImportServices ( true ). build ( ));
73
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , HTTP_TRANSACTION ). setImportServices ( true ). build ( ));
74
74
// Marshalling support for EJB SessionIDs
75
75
// TODO Move this to distributable-ejb subsystem
76
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , CLUSTERING_EJB_CLIENT , false , false , true , false ));
76
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , CLUSTERING_EJB_CLIENT ). setImportServices ( true ). build ( ));
77
77
78
78
if (IIOPDeploymentMarker .isIIOPDeployment (deploymentUnit )) {
79
79
//needed for dynamic IIOP stubs
80
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , IIOP_OPENJDK , false , false , false , false ));
80
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , IIOP_OPENJDK ). build ( ));
81
81
}
82
82
83
83
// fetch the EjbJarMetaData
@@ -91,7 +91,7 @@ public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitPro
91
91
// FIXME: still not the best way to do it
92
92
//this must be the first dep listed in the module
93
93
if (Boolean .getBoolean ("org.jboss.as.ejb3.EMBEDDED" ))
94
- moduleSpecification .addSystemDependency (new ModuleDependency (moduleLoader , "Classpath" , false , false , false , false ));
94
+ moduleSpecification .addSystemDependency (ModuleDependency . Builder . of (moduleLoader , "Classpath" ). build ( ));
95
95
96
96
}
97
97
}
0 commit comments