Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.jboss.aop.domain;
 /*     */ 
 /*     */ import java.lang.ref.WeakReference;
 /*     */ import java.util.concurrent.ConcurrentHashMap;
 /*     */ import org.jboss.aop.AspectManager;
 /*     */ import org.jboss.aop.Domain;
 /*     */ import org.jboss.aop.InterceptionMarkers;
 /*     */ import org.jboss.aop.advice.AspectDefinition;
 /*     */ 
/*     */ public abstract class ScopedClassLoaderDomain extends Domain
/*     */ {
/*     */   private WeakReference<ClassLoaderloader;
/*     */   protected boolean parentDelegation;
/*  45 */   protected ConcurrentHashMap<StringObjectmyPerVMAspects = new ConcurrentHashMap();
/*  46 */   protected ConcurrentHashMap<StringBooleannotMyPerVMAspects = new ConcurrentHashMap();
/*  47 */   protected InterceptionMarkers interceptionMarkers = new InterceptionMarkers();
/*     */   protected String classLoaderString;
/*     */ 
/*     */   public ScopedClassLoaderDomain(ClassLoader loaderString nameboolean parentDelegationAspectManager managerboolean parentFirst)
/*     */   {
/*  52 */     super(managernameparentFirst);
/*  53 */     if (loader == null)
/*  54 */       throw new IllegalArgumentException("Null classloader");
/*  55 */     this. = new WeakReference(loader);
/*  56 */     this. = parentDelegation;
/*  57 */     this. = loader.toString();
/*  58 */     this. = true;
/*  59 */     this. = true;
/*     */   }
/*     */ 
/*     */   protected ClassLoader getClassLoader()
/*     */   {
/*  64 */     ClassLoader cl = (ClassLoader)this..get();
/*  65 */     if (cl != null)
/*     */     {
/*  67 */       return cl;
/*     */     }
/*  69 */     return null;
/*     */   }
/*     */ 
/*     */   public abstract boolean isValid();
/*     */ 
/*     */   public void removeAspectDefinition(String name)
/*     */   {
/*  79 */     AspectDefinition def = super.internalRemoveAspectDefintion(name);
/*  80 */     if (def != null)
/*     */     {
/*  82 */       this..remove(name);
/*     */     }
/*     */   }
/*     */ 
/*     */   public Object getPerVMAspect(AspectDefinition def)
/*     */   {
/*  89 */     return getPerVMAspect(def.getName());
/*     */   }
/*     */ 
/*     */   public InterceptionMarkers getInterceptionMarkers()
/*     */   {
/*  95 */     return this.;
/*     */   }
/*     */ 
/*     */   public Object getPerVMAspect(String def)
/*     */   {
/* 101 */     if (this. == true)
/*     */     {
/* 104 */       Object aspect = super.getPerVMAspect(def);
/* 105 */       return aspect;
/*     */     }
/*     */ 
/* 109 */     return getPerVmAspectWithNoParentDelegation(def);
/*     */   }
/*     */ 
/*     */   protected Object getSuperPerVmAspect(String def)
/*     */   {
/* 115 */     return super.getPerVMAspect(def);
/*     */   }
/*     */ 
/*     */   protected abstract Object getPerVmAspectWithNoParentDelegation(String paramString);
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.domain.ScopedClassLoaderDomain
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X