org.springframework.jee.ejb
Class EjbMetadata

java.lang.Object
  extended by org.springframework.jee.inject.Jsr250Metadata
      extended by org.springframework.jee.intercept.InterceptionMetadata
          extended by org.springframework.jee.ejb.EjbMetadata
All Implemented Interfaces:
Jsr250MetadataI, InterceptionMetadataI

public class EjbMetadata
extends InterceptionMetadata

Metadata for an EJB. Extends InterceptionMetadata to add additional EJB metadata such as singleton type, and do more sophisticated proxying to handle EJB component model contract. Does not do Spring transaction management: this is assumed to be provided by the container.

Author:
Rod Johnson

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.jee.intercept.InterceptionMetadata
InterceptionMetadata.InterceptorExclusion
 
Field Summary
 
Fields inherited from class org.springframework.jee.inject.Jsr250Metadata
KEY
 
Constructor Summary
EjbMetadata(DeploymentUnitMetadata dum, String name, Class<?> componentClass, BeanType beanType)
           
 
Method Summary
protected  void addComponentContractInterceptors(ProxyFactory pf, Object bean, Map<Class,Object> interceptorInstancesForClass)
          Add interceptors that apply the component contract--such as EJB transaction behaviour.
 BeanType getBeanType()
           
 
Methods inherited from class org.springframework.jee.intercept.InterceptionMetadata
addAspectJAdvisors, addBeanControlInterfaceMethod, addBusinessInterface, addJeeInterceptors, addJeeInterceptors, addSelfInterceptor, addSpringAopAdvisors, addSuperInterceptors, createProxyIfNecessary, createProxyIfNecessary, customizeProxyConfig, findBusinessInterfacesFromClassOrAnnotation, getBeanControlInterface, getBeanControlInterfaceMethods, getBusinessInterfaces, getExclusion, getInterceptorMetadata, getInterceptorOrder, invokeLifecycleMethods, invokePostConstructAndRegisterShutdownHook, isExcludedAsBusinessInterfaceOnAutodetect, registerInterceptorMetadata, registerInterceptorOrder, registerSelfInterceptorMethod, setBeanControlInterface, setBeanControlInterfaceMethods, setComponentContext, setExcludeClassInterceptors, setExcludeDefaultInterceptors
 
Methods inherited from class org.springframework.jee.inject.Jsr250Metadata
addInjection, applyInjections, getBeanDefinition, getBeanDefinitionRegistry, getComponentClass, getComponentContext, getComponentName, getDeploymentUnitMetadata, getInjections, getLifecycleEventCallbackMethod, getUniqueInstanceOfType, inject, injectAndPostConstruct, invokeLifecycleMethod, invokeLifecycleMethod, refresh, registerLifecycleEventCallbackMethod, resolve, resolveByType, setBeanDefinition, setComponentContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.jee.interfaces.inject.Jsr250MetadataI
addInjection, getComponentClass, getComponentName, getDeploymentUnitMetadata, getInjections, getLifecycleEventCallbackMethod, inject, refresh, registerLifecycleEventCallbackMethod
 

Constructor Detail

EjbMetadata

public EjbMetadata(DeploymentUnitMetadata dum,
                   String name,
                   Class<?> componentClass,
                   BeanType beanType)
Parameters:
name -
componentClass -
Method Detail

getBeanType

public BeanType getBeanType()
Returns:
the beanType

addComponentContractInterceptors

protected void addComponentContractInterceptors(ProxyFactory pf,
                                                Object bean,
                                                Map<Class,Object> interceptorInstancesForClass)
Description copied from class: InterceptionMetadata
Add interceptors that apply the component contract--such as EJB transaction behaviour.

Overrides:
addComponentContractInterceptors in class InterceptionMetadata
Parameters:
pf - ProxyFactory used to create proxy


Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.