org.jboss.aop.microcontainer.beans
Class DelegatingBeanAspectFactory

java.lang.Object
  extended by org.jboss.aop.microcontainer.beans.DelegatingBeanAspectFactory
All Implemented Interfaces:
org.jboss.aop.advice.AspectFactory, BeanFactoryAwareAspectFactory, KernelControllerContextAware

public class DelegatingBeanAspectFactory
extends Object
implements org.jboss.aop.advice.AspectFactory, KernelControllerContextAware, BeanFactoryAwareAspectFactory

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Field Summary
protected  org.jboss.aop.advice.AspectFactory aspectFactory
           
protected  KernelControllerContext context
           
protected  Element element
           
protected  BeanFactory factory
           
protected  String name
           
 
Constructor Summary
DelegatingBeanAspectFactory(String name, BeanFactory factory, Element element)
           
 
Method Summary
 Object createPerClass(org.jboss.aop.Advisor advisor)
           
 Object createPerInstance(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor)
           
 Object createPerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor, org.jboss.aop.joinpoint.Joinpoint jp)
           
 Object createPerJoinpoint(org.jboss.aop.Advisor advisor, org.jboss.aop.joinpoint.Joinpoint jp)
           
 Object createPerVM()
           
protected  org.jboss.aop.advice.AspectFactory doCreate()
           
 String getName()
           
 void setBeanFactory(BeanFactory factory)
           
 void setKernelControllerContext(KernelControllerContext context)
          Set the controller context.
 void unsetKernelControllerContext(KernelControllerContext context)
          Unset the controller context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected BeanFactory factory

name

protected String name

element

protected Element element

context

protected KernelControllerContext context

aspectFactory

protected org.jboss.aop.advice.AspectFactory aspectFactory
Constructor Detail

DelegatingBeanAspectFactory

public DelegatingBeanAspectFactory(String name,
                                   BeanFactory factory,
                                   Element element)
Method Detail

setKernelControllerContext

public void setKernelControllerContext(KernelControllerContext context)
Description copied from interface: KernelControllerContextAware
Set the controller context.

This is invoked after construction with the controller context.

WARNING: This protocol is subject to change with the classadapter implementation.

Specified by:
setKernelControllerContext in interface KernelControllerContextAware
Parameters:
context - the context

unsetKernelControllerContext

public void unsetKernelControllerContext(KernelControllerContext context)
                                  throws Exception
Description copied from interface: KernelControllerContextAware
Unset the controller context.

This is before uninstallation with null.

WARNING: This protocol is subject to change with the classadapter implementation.

Specified by:
unsetKernelControllerContext in interface KernelControllerContextAware
Parameters:
context - the context
Throws:
Exception - for any error

setBeanFactory

public void setBeanFactory(BeanFactory factory)
Specified by:
setBeanFactory in interface BeanFactoryAwareAspectFactory

getName

public String getName()
Specified by:
getName in interface org.jboss.aop.advice.AspectFactory

createPerVM

public Object createPerVM()
Specified by:
createPerVM in interface org.jboss.aop.advice.AspectFactory

createPerClass

public Object createPerClass(org.jboss.aop.Advisor advisor)
Specified by:
createPerClass in interface org.jboss.aop.advice.AspectFactory

createPerInstance

public Object createPerInstance(org.jboss.aop.Advisor advisor,
                                org.jboss.aop.InstanceAdvisor instanceAdvisor)
Specified by:
createPerInstance in interface org.jboss.aop.advice.AspectFactory

createPerJoinpoint

public Object createPerJoinpoint(org.jboss.aop.Advisor advisor,
                                 org.jboss.aop.joinpoint.Joinpoint jp)
Specified by:
createPerJoinpoint in interface org.jboss.aop.advice.AspectFactory

createPerJoinpoint

public Object createPerJoinpoint(org.jboss.aop.Advisor advisor,
                                 org.jboss.aop.InstanceAdvisor instanceAdvisor,
                                 org.jboss.aop.joinpoint.Joinpoint jp)
Specified by:
createPerJoinpoint in interface org.jboss.aop.advice.AspectFactory

doCreate

protected org.jboss.aop.advice.AspectFactory doCreate()


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.