[jboss-as7-dev] [AS7-5477] Allow processing of the module phase to be deferred
Thomas Diesler
thomas.diesler at jboss.com
Tue Sep 25 10:24:29 EDT 2012
Stuart,
I implement the first cut of this as we talked about.
The DeferredModuleUseProcessor adds a the module service as a dependency
on the next phase, which is FISRT_MODULE_USE. This is actually something
I previously already did for resolved bundles - now I do it always in
this DUP.
The DeploymentUnitPhaseService makes Phase.FISRT_MODULE_USE passive if
it sees explicitly named services in
Attachments.DEFERRED_MODULE_DEPENDENCIES
The processing is currently limited to OSGi only and this patch should
not effect other deployment types. The OSGi testsuite passes completely
with a few deployments hanging in Phase.FISRT_MODULE_USE before they
triggered to proceed by an explicit API call which resolves the bundle
and hance makes the module service available.
TODO:
* Think about whether Phase.FISRT_MODULE_USE should always depend on the
Module service
* Remove all module == null checks in FISRT_MODULE_USE DUPs and after.
cheers
--thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
More information about the jboss-as7-dev
mailing list