org.jboss.resteasy.core
Class PropertyInjectorImpl

java.lang.Object
  extended by org.jboss.resteasy.core.PropertyInjectorImpl
All Implemented Interfaces:
PropertyInjector

public class PropertyInjectorImpl
extends java.lang.Object
implements PropertyInjector

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.lang.Class clazz
           
protected  java.util.HashMap<java.lang.reflect.Field,ValueInjector> fieldMap
           
protected  java.util.HashMap<java.lang.Long,java.lang.reflect.Method> setterhashes
           
protected  java.util.List<org.jboss.resteasy.core.PropertyInjectorImpl.SetterMethod> setters
           
 
Constructor Summary
PropertyInjectorImpl(java.lang.Class clazz, ResteasyProviderFactory factory)
           
 
Method Summary
static long createHash(java.lang.String methodDesc)
           
 void inject(HttpRequest request, HttpResponse response, java.lang.Object target)
          Inject values into annotated properties (fields/setter methods) of the target object.
 void inject(java.lang.Object target)
          Inject values into annotated properties (fields/setter methods) of the target object.
static long methodHash(java.lang.reflect.Method method)
           
protected  void populateMap(java.lang.Class clazz, ResteasyProviderFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldMap

protected java.util.HashMap<java.lang.reflect.Field,ValueInjector> fieldMap

setters

protected java.util.List<org.jboss.resteasy.core.PropertyInjectorImpl.SetterMethod> setters

setterhashes

protected java.util.HashMap<java.lang.Long,java.lang.reflect.Method> setterhashes

clazz

protected java.lang.Class clazz
Constructor Detail

PropertyInjectorImpl

public PropertyInjectorImpl(java.lang.Class clazz,
                            ResteasyProviderFactory factory)
Method Detail

methodHash

public static long methodHash(java.lang.reflect.Method method)
                       throws java.lang.Exception
Throws:
java.lang.Exception

createHash

public static long createHash(java.lang.String methodDesc)
                       throws java.lang.Exception
Throws:
java.lang.Exception

populateMap

protected void populateMap(java.lang.Class clazz,
                           ResteasyProviderFactory factory)

inject

public void inject(HttpRequest request,
                   HttpResponse response,
                   java.lang.Object target)
            throws Failure
Description copied from interface: PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used inside the scope of an HTTP request.

Specified by:
inject in interface PropertyInjector
Throws:
Failure

inject

public void inject(java.lang.Object target)
Description copied from interface: PropertyInjector
Inject values into annotated properties (fields/setter methods) of the target object. This method should only be used outside the scope of an HTTP request.

Specified by:
inject in interface PropertyInjector


Copyright © 2009. All Rights Reserved.