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

EJBContextFieldInjector

public class EJBContextFieldInjector extends Object implements Injector, PojoInjector
Comment
author
Bill Burke
version
$Revision: 60233 $
deprecated
use EJBContextPropertyInjector

Fields Summary
private Field
field
Constructors Summary
public EJBContextFieldInjector(Field field)

      this.field = field;
      field.setAccessible(true);
   
Methods Summary
public java.lang.ClassgetInjectionClass()

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

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

      try
      {
         field.set(instance, ctx.getEJBContext());
      }
      catch (IllegalAccessException e)
      {
         throw new RuntimeException(e);
      }
   
public voidinject(java.lang.Object instance)

      throw new RuntimeException("Illegal operation");