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

WebServiceContextPropertyInjector

public class WebServiceContextPropertyInjector extends Object implements Injector
Injects a WebServiceContext into a bean.
author
Carlo de Wolf
author
Thomas.Diesler@jboss.com
version
$Revision: $

Fields Summary
private org.jboss.injection.lang.reflect.BeanProperty
property
Constructors Summary
protected WebServiceContextPropertyInjector(org.jboss.injection.lang.reflect.BeanProperty property)

      assert property != null : "property must be set";
      
      this.property = property;
   
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)

      if(!(ctx instanceof StatelessBeanContext))
         throw new RuntimeException("Can only inject on stateless bean context");
      
      ((StatelessBeanContext)ctx).setWebServiceContextProperty(property);