Skip to content

Commit

Permalink
AS7-6767 CDI beans from a bundled library not accessible to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting authored and jaikiran committed Mar 21, 2013
1 parent 9165c5d commit 0d911ed
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.jboss.as.server.moduleservice.ServiceModuleLoader;
import org.jboss.modules.ModuleIdentifier;
import org.jboss.modules.ModuleLoader;
import org.jboss.modules.filter.PathFilters;
import org.jboss.msc.service.ServiceController;
import org.jboss.msc.service.ServiceName;

Expand Down Expand Up @@ -70,7 +71,10 @@ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentU
entry.getImplementationVersion(), entry.getImplementationVendorId());

if (extension != null) {
moduleSpecification.addLocalDependency(new ModuleDependency(moduleLoader, extension, false, false, true, false));
ModuleDependency dependency = new ModuleDependency(moduleLoader, extension, false, false, true, false);
dependency.addImportFilter(PathFilters.getMetaInfSubdirectoriesFilter(), true);
dependency.addImportFilter(PathFilters.getMetaInfFilter(), true);
moduleSpecification.addLocalDependency(dependency);
nextPhaseDeps.add(ServiceModuleLoader.moduleSpecServiceName(extension));
nextPhaseDeps.add(ServiceModuleLoader.moduleSpecServiceName(extension));
} else {
Expand Down

0 comments on commit 0d911ed

Please sign in to comment.