FileDocCategorySizeDatePackage
EJBContextPropertyInjector.javaAPI DocJBoss 4.2.11961Fri Jul 13 20:53:46 BST 2007org.jboss.injection

EJBContextPropertyInjector

public class EJBContextPropertyInjector extends Object implements Injector, PojoInjector
Injects an ejb context into an ejb.
author
Bill Burke
author
Carlo de Wolf
version
$Revision: 1.1 $

Fields Summary
private org.jboss.injection.lang.reflect.BeanProperty
property
Constructors Summary
public EJBContextPropertyInjector(org.jboss.injection.lang.reflect.BeanProperty property)

      this.property = property;
   
Methods Summary
public java.lang.ClassgetInjectionClass()

      return property.getType();
   
public voidinject(org.jboss.ejb3.BeanContext ctx)

      inject(ctx, ctx.getInstance());
   
public voidinject(org.jboss.ejb3.BeanContext ctx, java.lang.Object instance)

      property.set(instance, ctx.getEJBContext());
   
public voidinject(java.lang.Object instance)

      throw new RuntimeException("Illegal operation");