org.jboss.ejb3.interceptors.aop
Class InterceptorsFactory

java.lang.Object
  extended by org.jboss.ejb3.interceptors.aop.AbstractInterceptorFactory
      extended by org.jboss.ejb3.interceptors.aop.InterceptorsFactory
All Implemented Interfaces:
org.jboss.aop.advice.AspectFactory

public class InterceptorsFactory
extends AbstractInterceptorFactory

The interceptors factory analyzes the annotations and creates interceptor instances out of those. These are then attached to the advisor as meta data. Do not access this meta data directly, use the provided static methods herein.

Version:
$Revision: 73124 $
Author:
Carlo de Wolf

Constructor Summary
InterceptorsFactory()
           
 
Method Summary
 java.lang.Object createPerInstance(org.jboss.aop.Advisor advisor, org.jboss.aop.InstanceAdvisor instanceAdvisor)
           
static java.util.List<org.jboss.aop.advice.Interceptor> getBeanInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)
           
static java.util.List<org.jboss.aop.advice.Interceptor> getBusinessMethodInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor, java.lang.reflect.Method businessMethod)
           
static org.jboss.aop.advice.Interceptor[] getBusinessMethodInterceptors(org.jboss.aop.joinpoint.MethodInvocation invocation)
          Deprecated. 
static java.util.List<org.jboss.aop.advice.Interceptor> getClassInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)
           
static org.jboss.aop.advice.Interceptor[] getClassInterceptors(org.jboss.aop.joinpoint.Invocation invocation)
          Deprecated. 
static java.util.List<org.jboss.aop.advice.Interceptor> getDefaultInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)
           
static java.util.List<org.jboss.aop.advice.Interceptor> getLifeCycleInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor, java.lang.Class<? extends java.lang.annotation.Annotation> lifeCycleAnnotationClass)
           
static java.util.List<org.jboss.aop.advice.Interceptor> getPreDestroys(org.jboss.aop.InstanceAdvisor instanceAdvisor)
          Deprecated. use getLifeCycleInterceptors
 
Methods inherited from class org.jboss.ejb3.interceptors.aop.AbstractInterceptorFactory
createPerClass, createPerJoinpoint, createPerJoinpoint, createPerVM, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorsFactory

public InterceptorsFactory()
Method Detail

createPerInstance

public java.lang.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 AbstractInterceptorFactory

getBeanInterceptors

public static java.util.List<org.jboss.aop.advice.Interceptor> getBeanInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)

getBusinessMethodInterceptors

@Deprecated
public static org.jboss.aop.advice.Interceptor[] getBusinessMethodInterceptors(org.jboss.aop.joinpoint.MethodInvocation invocation)
Deprecated. 


getBusinessMethodInterceptors

public static java.util.List<org.jboss.aop.advice.Interceptor> getBusinessMethodInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor,
                                                                                             java.lang.reflect.Method businessMethod)

getClassInterceptors

@Deprecated
public static org.jboss.aop.advice.Interceptor[] getClassInterceptors(org.jboss.aop.joinpoint.Invocation invocation)
Deprecated. 


getClassInterceptors

public static java.util.List<org.jboss.aop.advice.Interceptor> getClassInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)

getDefaultInterceptors

public static java.util.List<org.jboss.aop.advice.Interceptor> getDefaultInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor)

getLifeCycleInterceptors

public static java.util.List<org.jboss.aop.advice.Interceptor> getLifeCycleInterceptors(org.jboss.aop.InstanceAdvisor instanceAdvisor,
                                                                                        java.lang.Class<? extends java.lang.annotation.Annotation> lifeCycleAnnotationClass)

getPreDestroys

@Deprecated
public static java.util.List<org.jboss.aop.advice.Interceptor> getPreDestroys(org.jboss.aop.InstanceAdvisor instanceAdvisor)
Deprecated. use getLifeCycleInterceptors

Parameters:
instanceAdvisor -
Returns:


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