private void deployAnnotations(AspectManager manager, VFSDeploymentUnit unit) throws DeploymentException
{
log.info("Deploying AOP annotations into " + manager + " for " + unit.getClassLoader());
AspectAnnotationLoader loader = getAnnotationLoader(manager, unit);
List<VirtualFile> files = getClasses(unit);
ArrayList<VirtualFile> deployedFiles = new ArrayList<VirtualFile>(files.size());
for(VirtualFile file : files)
{
try
{
ClassFile cf = loadClassFile(file);
log.debug("Deploying possibly annotated class " + cf.getName() + " into " + manager);
loader.deployClassFile(cf);
}
catch (Exception e)
{
//Unwind things already installed, in the reverse order
for (int i = deployedFiles.size() - 1; i >= 0 ; i-- )