}
@Override
public boolean resolve(LifeCycle... lifecycles) throws Exception
{
DeployerClientChangeExt changer = getChanger();
Set<DeploymentLifeCycle> deploymentLifeCycles = null;
if (changer != null)
deploymentLifeCycles = getDeploymentLifeCycles(lifecycles);
if (deploymentLifeCycles == null)
{
return super.resolve(lifecycles);
}
Set<String> names = new LinkedHashSet<String>(lifecycles.length);
for (DeploymentLifeCycle lifeCycle : deploymentLifeCycles)
{
if (lifeCycle.isResolved() == false)
names.add(lifeCycle.getModule().getDeploymentUnit().getName());
}
if (names.isEmpty() == false)
{
try
{
changer.change(DeploymentStages.CLASSLOADER, true, names.toArray(new String[names.size()]));
}
catch (IncompleteDeploymentException e)
{
return false;
}