Package org.jboss.aop

Examples of org.jboss.aop.AspectAnnotationLoader


      {
         Thread.currentThread().setContextClassLoader(di.ucl);
         if (!di.isXML)
         {
            Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
            AspectAnnotationLoader loader = new AspectAnnotationLoader(AspectManager.instance());
            loader.undeployInputStreamIterator(it);

         }

         URL docURL = getDocUrl(di);
         //long start = System.currentTimeMillis();
View Full Code Here


/* 168 */       Thread.currentThread().setContextClassLoader(di.ucl);
/* 169 */       AspectManager manager = scl != null ? AspectManager.instance(scl) : AspectManager.instance();
/* 170 */       if (!di.isXML)
/*     */       {
/* 172 */         Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
/* 173 */         AspectAnnotationLoader loader = new AspectAnnotationLoader(manager);
/* 174 */         loader.setClassLoader(scl);
/* 175 */         loader.deployInputStreamIterator(it);
/*     */       }
/*     */
/* 178 */       AspectXmlLoader.deployXML(docURL, scl, manager);
/* 179 */       Notification msg = new Notification("AOP Deploy", this, getNextNotificationSequenceNumber());
/* 180 */       sendNotification(msg);
View Full Code Here

/*     */     {
/* 231 */       Thread.currentThread().setContextClassLoader(di.ucl);
/* 232 */       if (!di.isXML)
/*     */       {
/* 234 */         Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
/* 235 */         AspectAnnotationLoader loader = new AspectAnnotationLoader(AspectManager.instance());
/* 236 */         loader.undeployInputStreamIterator(it);
/*     */       }
/*     */
/* 240 */       URL docURL = getDocUrl(di);
/*     */
/* 242 */       AspectXmlLoader.undeployXML(docURL);
View Full Code Here

/*     */
/*     */   private void deployAnnotations(AspectManager manager, VFSDeploymentUnit unit) throws DeploymentException
/*     */   {
/* 229 */     this.log.info("Deploying AOP annotations into " + manager + " for " + unit.getClassLoader());
/*     */
/* 231 */     AspectAnnotationLoader loader = getAnnotationLoader(manager, unit);
/* 232 */     List files = getClasses(unit);
/* 233 */     ArrayList deployedFiles = new ArrayList(files.size());
/* 234 */     for (VirtualFile file : files)
/*     */     {
/*     */       try
/*     */       {
/* 238 */         ClassFile cf = loadClassFile(file);
/* 239 */         this.log.debug("Deploying possibly annotated class " + cf.getName() + " into " + manager);
/* 240 */         loader.deployClassFile(cf);
/*     */       }
/*     */       catch (Exception e)
/*     */       {
/* 245 */         for (int i = deployedFiles.size(); i >= 0; i--)
/*     */         {
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   private void undeployAnnotations(AspectManager manager, VFSDeploymentUnit unit)
/*     */   {
/* 256 */     AspectAnnotationLoader loader = getAnnotationLoader(manager, unit);
/* 257 */     List files = getClasses(unit);
/* 258 */     for (VirtualFile file : files)
/*     */     {
/* 260 */       undeployAnnotation(loader, file);
/*     */     }
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   private AspectAnnotationLoader getAnnotationLoader(AspectManager manager, VFSDeploymentUnit unit)
/*     */   {
/* 280 */     AspectAnnotationLoader loader = new AspectAnnotationLoader(manager);
/* 281 */     loader.setClassLoader(unit.getClassLoader());
/* 282 */     return loader;
/*     */   }
View Full Code Here

         AspectManager manager = (scl != null) ? AspectManager.instance(scl) : AspectManager.instance();
         if (!di.isXML)
         {
            @SuppressWarnings("unchecked")
            Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
            AspectAnnotationLoader loader = new AspectAnnotationLoader(manager);
            loader.setClassLoader(scl);
            loader.deployInputStreamIterator(it);
         }

         AspectXmlLoader.deployXML(docURL, scl, manager);
         Notification msg = new Notification("AOP Deploy", this, getNextNotificationSequenceNumber());
         sendNotification(msg);
View Full Code Here

         Thread.currentThread().setContextClassLoader(di.ucl);
         if (!di.isXML)
         {
            @SuppressWarnings("unchecked")
            Iterator it = ArchiveBrowser.getBrowser(di.localUrl, new ClassFileFilter());
            AspectAnnotationLoader loader = new AspectAnnotationLoader(AspectManager.instance());
            loader.undeployInputStreamIterator(it);

         }

         URL docURL = getDocUrl(di);
         //long start = System.currentTimeMillis();
View Full Code Here

   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() ; i >= 0 ; i-- )
View Full Code Here

      }
   }
  
   private void undeployAnnotations(AspectManager manager, VFSDeploymentUnit unit)
   {
      AspectAnnotationLoader loader = getAnnotationLoader(manager, unit);
      List<VirtualFile> files = getClasses(unit);
      for(VirtualFile file : files)
      {
         undeployAnnotation(loader, file);
      }
View Full Code Here

TOP

Related Classes of org.jboss.aop.AspectAnnotationLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.