org.jboss.ejb3.aop
Class BeanContainer

java.lang.Object
  extended by org.jboss.ejb3.interceptors.annotation.AnnotationAdvisorSupport
      extended by org.jboss.ejb3.interceptors.container.AbstractContainer<T,C>
          extended by org.jboss.ejb3.interceptors.direct.AbstractDirectContainer<Object,BeanContainer>
              extended by org.jboss.ejb3.aop.BeanContainer
All Implemented Interfaces:
org.jboss.ejb3.interceptors.annotation.AnnotationAdvisor

public class BeanContainer
extends org.jboss.ejb3.interceptors.direct.AbstractDirectContainer<Object,BeanContainer>

Comment

Version:
$Revision: $
Author:
Carlo de Wolf

Constructor Summary
BeanContainer(EJBContainer container)
           
 
Method Summary
 org.jboss.aop.Advisor _getAdvisor()
          Deprecated. 
protected  org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor<Object,BeanContainer> createAdvisor(String name, org.jboss.aop.Domain domain, Class<? extends Object> beanClass, org.jboss.aop.annotation.AnnotationRepository annotations)
           
protected  Object createInterceptor(Class<?> interceptorClass)
           
<T extends Annotation>
T
getAnnotation(Class<?> clazz, Class<T> annotationType)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationClass)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType, Class<?> clazz, Field field)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType, Class<?> clazz, Method method)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType, Field field)
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType, Method method)
           
 org.jboss.aop.annotation.AnnotationRepository getAnnotationRepository()
          Deprecated. 
 EJBContainer getEJBContainer()
           
 List<Class<?>> getInterceptorClasses()
           
protected  List<Method> getVirtualMethods()
           
 void initialize(String name, org.jboss.aop.Domain domain, Class<? extends Object> beanClass, org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData, ClassLoader classLoader)
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
           
 void reinitializeAdvisor()
          Deprecated. 
 
Methods inherited from class org.jboss.ejb3.interceptors.direct.AbstractDirectContainer
construct, construct, destroy, getBeanClass, getInterceptorRegistry, invoke, invoke, invokeIndirect
 
Methods inherited from class org.jboss.ejb3.interceptors.container.AbstractContainer
construct, createAndSetAdvisor, getAdvisor, getContainer, getDomain, initializeAdvisor, initializeAdvisor, setBeanContextFactoryClass
 
Methods inherited from class org.jboss.ejb3.interceptors.annotation.AnnotationAdvisorSupport
getAnnotation, getAnnotation, isAnnotationPresent, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.interceptors.annotation.AnnotationAdvisor
getAnnotation, getAnnotation, isAnnotationPresent, isAnnotationPresent, isAnnotationPresent
 

Constructor Detail

BeanContainer

public BeanContainer(EJBContainer container)
Method Detail

getInterceptorClasses

public List<Class<?>> getInterceptorClasses()

createInterceptor

protected Object createInterceptor(Class<?> interceptorClass)
                            throws InstantiationException,
                                   IllegalAccessException
Overrides:
createInterceptor in class org.jboss.ejb3.interceptors.container.AbstractContainer<Object,BeanContainer>
Throws:
InstantiationException
IllegalAccessException

_getAdvisor

@Deprecated
public org.jboss.aop.Advisor _getAdvisor()
Deprecated. 


getAnnotationRepository

@Deprecated
public org.jboss.aop.annotation.AnnotationRepository getAnnotationRepository()
Deprecated. 


getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationClass)

getAnnotation

public <T extends Annotation> T getAnnotation(Class<?> clazz,
                                              Class<T> annotationType)
Specified by:
getAnnotation in interface org.jboss.ejb3.interceptors.annotation.AnnotationAdvisor
Overrides:
getAnnotation in class org.jboss.ejb3.interceptors.annotation.AnnotationAdvisorSupport

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType,
                                              Class<?> clazz,
                                              Field field)

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType,
                                              Class<?> clazz,
                                              Method method)

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType,
                                              Field field)

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType,
                                              Method method)

getEJBContainer

public final EJBContainer getEJBContainer()

getVirtualMethods

protected List<Method> getVirtualMethods()

initialize

public void initialize(String name,
                       org.jboss.aop.Domain domain,
                       Class<? extends Object> beanClass,
                       org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData beanMetaData,
                       ClassLoader classLoader)

createAdvisor

protected org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor<Object,BeanContainer> createAdvisor(String name,
                                                                                                         org.jboss.aop.Domain domain,
                                                                                                         Class<? extends Object> beanClass,
                                                                                                         org.jboss.aop.annotation.AnnotationRepository annotations)
Overrides:
createAdvisor in class org.jboss.ejb3.interceptors.container.AbstractContainer<Object,BeanContainer>

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)

reinitializeAdvisor

@Deprecated
public void reinitializeAdvisor()
Deprecated. 

FIXME: This method should not be needed. Initialization should already have happened earlier in the game. (Ejb3DescriptorHandler adds annotations after a container object is constructed.)



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