internalDeploy((VFSDeploymentUnit)unit);
}
private void internalDeploy(VFSDeploymentUnit unit) throws DeploymentException
{
MicrocontainerAnnotationLoaderStrategy strategy = new MicrocontainerAnnotationLoaderStrategy();
AspectAnnotationLoader loader = new AspectAnnotationLoader(null, strategy);
List<VirtualFile> files = getClasses(unit);
for(VirtualFile file : files)
{
try
{
ClassFile cf = loadClassFile(file);
log.debug("Deploying possibly annotated class " + cf.getName());
loader.deployClassFile(cf);
}
catch (Exception e)
{
throw new DeploymentException("Error reading annotations for " + file, e);
}
}
List<AspectManagerAwareBeanMetaDataFactory> factories = strategy.getFactories();
AOPDeployment deployment = unit.getAttachment(AOPDeployment.class);
if (factories != null && factories.size() > 0)
{
if (deployment == null)