org.jboss.aop.microcontainer.beans
Class GenericBeanAspectFactory

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

public class GenericBeanAspectFactory
extends org.jboss.aop.advice.GenericAspectFactory
implements KernelControllerContextAware, BeanFactoryAwareAspectFactory

A GenericBeanAspectFactory.

Version:
$Revision: 87586 $
Author:
Adrian Brock

Field Summary
protected  String classname
           
protected  KernelControllerContext context
           
protected  Element element
           
protected  BeanFactory factory
           
protected  String name
           
 
Constructor Summary
GenericBeanAspectFactory(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  Object doCreate(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor, org.jboss.aop.joinpoint.Joinpoint jp)
           
 String getAspectName()
           
 String getClassname()
           
 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 org.jboss.aop.advice.GenericAspectFactory
configureInstance, getClazz, getElement, getInjectorName, injectAdvisor, injectInstanceAdvisor, injectJoinpoint, setAttribute, setClassname, setElement
 
Methods inherited from class org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport
getLoader, loadClass, peekScopedClassLoader, popScopedClassLoader, pushScopedClassLoader, setClassLoader
 
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

classname

protected String classname

element

protected Element element

context

protected KernelControllerContext context
Constructor Detail

GenericBeanAspectFactory

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

setBeanFactory

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

getAspectName

public String getAspectName()

getName

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

getClassname

public String getClassname()
Overrides:
getClassname in class org.jboss.aop.advice.GenericAspectFactory

createPerVM

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

createPerClass

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

createPerInstance

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

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
Overrides:
createPerJoinpoint in class org.jboss.aop.advice.GenericAspectFactory

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
Overrides:
createPerJoinpoint in class org.jboss.aop.advice.GenericAspectFactory

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

doCreate

protected Object doCreate(org.jboss.aop.Advisor advisor,
                          org.jboss.aop.InstanceAdvisor instanceAdvisor,
                          org.jboss.aop.joinpoint.Joinpoint jp)


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