Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aop.proxy.container;
 /*    */ 
 /*    */ import java.lang.ref.WeakReference;
 /*    */ import java.util.WeakHashMap;
 /*    */ import org.jboss.aop.Advisor;
 /*    */ import org.jboss.aop.AspectManager;
 /*    */ import org.jboss.aop.GeneratedAdvisorDomain;
 /*    */ 
 /*    */ public class ProxyAdvisorDomain extends GeneratedAdvisorDomain
/*    */ {
/*    */   protected WeakReference advisor;
/*    */ 
/*    */   public ProxyAdvisorDomain(AspectManager managerString nameClass clazz)
/*    */   {
/* 42 */     this(manager, name, clazz, false);
/*    */   }
/*    */ 
/*    */   public ProxyAdvisorDomain(AspectManager managerString nameClass clazzboolean instanceDomain)
/*    */   {
/* 48 */     super(manager, name, clazz, instanceDomain);
/* 49 */     super.setInheritsBindings(true);
/* 50 */     super.setInheritsDeclarations(true);
/*    */   }
/*    */ 
/*    */   public Advisor getAdvisor()
/*    */   {
/* 56 */     return (Advisor)this.advisor.get();
/*    */   }
/*    */ 
/*    */   public void setAdvisor(Advisor advisor)
/*    */   {
/* 61 */     this.advisor = new WeakReference(advisor);
/*    */   }
/*    */ 
/*    */   public void attachAdvisor()
/*    */   {
/* 66 */     Advisor adv = (Advisor)this.advisor.get();
/* 67 */     this.advisors.put(adv.getClazz(), new WeakReference(adv));
/*    */   }
/*    */ 
/*    */   public void removeAdvisor(Advisor advisor)
/*    */   {
/* 72 */     this.advisors.remove(advisor.getClazz());
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.proxy.container.ProxyAdvisorDomain
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X