}
}
List<AspectManagerAwareBeanMetaDataFactory> factories = strategy.getFactories();
AOPDeployment deployment = unit.getAttachment(AOPDeployment.class);
if (factories != null && factories.size() > 0)
{
if (deployment == null)
{
deployment = new AOPDeployment();
unit.addAttachment(AOPDeployment.class.getName(), deployment, AOPDeployment.class);
}
if (deployment.getBeanFactories() == null)
{
deployment.setBeanFactories(new ArrayList<BeanMetaDataFactory>());
}
deployment.getBeanFactories().addAll(factories);
}
}