org.springframework.jee.ejb
Class EjbInjectionMetadata

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

public class EjbInjectionMetadata
extends TransactionalMetadata

Metadata for @EJB injection. Extends TransactionalMetadata and adds support for EJB injections.

Author:
Costin Leau

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
EjbInjectionMetadata(DeploymentUnitMetadataI deploymentUnitMetadata, String name, Class<?> componentClass)
           
 
Method Summary
 void addEjbInjection(InjectionI<EjbReferenceInfo> fi)
           
 List<InjectionI<EjbReferenceInfo>> getEjbInjections()
           
 void inject(Object instance)
          Perform dependency injection on the given instance and invoke the PostConstruct method if any
 
Methods inherited from class org.springframework.jee.transaction.TransactionalMetadata
addApplicationCheckedException, addComponentContractInterceptors, addTransactionalMethod, copyEjbTxAttribute, getApplicationCheckedExceptions, getTransactionalMethodAttributes, isTransactional, setTransactional
 
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, 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, refresh, registerLifecycleEventCallbackMethod
 

Constructor Detail

EjbInjectionMetadata

public EjbInjectionMetadata(DeploymentUnitMetadataI deploymentUnitMetadata,
                            String name,
                            Class<?> componentClass)
Method Detail

getEjbInjections

public List<InjectionI<EjbReferenceInfo>> getEjbInjections()

addEjbInjection

public void addEjbInjection(InjectionI<EjbReferenceInfo> fi)

inject

public void inject(Object instance)
Description copied from class: Jsr250Metadata
Perform dependency injection on the given instance and invoke the PostConstruct method if any

Specified by:
inject in interface Jsr250MetadataI
Overrides:
inject in class Jsr250Metadata
Parameters:
instance - newly instantiated bean instance. If it is null, static members will be used.


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