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

TimerServicePropertyInjector

public class TimerServicePropertyInjector extends Object implements Injector
Injects a timer service into an ejb.
author
Bill Burke
author
Carlo de Wolf
version
$Revision: 1.1 $

Fields Summary
private org.jboss.injection.lang.reflect.BeanProperty
property
private org.jboss.ejb3.Container
container
Constructors Summary
public TimerServicePropertyInjector(org.jboss.injection.lang.reflect.BeanProperty property, org.jboss.ejb3.Container container)

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

      return property.getType();
   
public voidinject(java.lang.Object instance)

      throw new RuntimeException("Illegal operation");
   
public voidinject(org.jboss.ejb3.BeanContext ctx)

      property.set(ctx.getInstance(), container.getTimerService());