Class ReflectivePropertyAccessor  
  
  
    - Namespace
- Steeltoe.Common.Expression.Internal.Spring.Support
- Assembly
- Steeltoe.Common.Expression.dll
 
  
  
  
    [Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class ReflectivePropertyAccessor : IPropertyAccessor
   
  
    - Inheritance
- 
      
      ReflectivePropertyAccessor 
    - Implements
- 
      
    
    - Derived
- 
      
    
    - Inherited Members
- 
    
    
    
    
    
    
    
  
Constructors
  
  
  ReflectivePropertyAccessor()
  
  
  
  
  
    public ReflectivePropertyAccessor()
   
  
  
  ReflectivePropertyAccessor(bool)
  
  
  
  
  
    public ReflectivePropertyAccessor(bool allowWrite)
   
  Parameters
  
    - allowWritebool
Methods
  
  
  CanRead(IEvaluationContext, object, string)
  
  
  
  
  
    public bool CanRead(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - bool
  CanWrite(IEvaluationContext, object, string)
  
  
  
  
  
    public bool CanWrite(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - bool
  CreateOptimalAccessor(IEvaluationContext, object, string)
  
  
  
  
  
    public IPropertyAccessor CreateOptimalAccessor(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - IPropertyAccessor
  FindField(string, Type, bool)
  
  
  
  
  
    protected virtual FieldInfo FindField(string name, Type clazz, bool mustBeStatic)
   
  Parameters
  
    - namestring
- clazzType
- mustBeStaticbool
Returns
  
    - FieldInfo
  FindGetterForProperty(string, Type, bool)
  
  
  
  
  
    protected virtual MethodInfo FindGetterForProperty(string propertyName, Type clazz, bool mustBeStatic)
   
  Parameters
  
    - propertyNamestring
- clazzType
- mustBeStaticbool
Returns
  
    - MethodInfo
  FindSetterForProperty(string, Type, bool)
  
  
  
  
  
    protected virtual MethodInfo FindSetterForProperty(string propertyName, Type clazz, bool mustBeStatic)
   
  Parameters
  
    - propertyNamestring
- clazzType
- mustBeStaticbool
Returns
  
    - MethodInfo
  GetSpecificTargetClasses()
  
  
  
  
  
    public virtual IList<Type> GetSpecificTargetClasses()
   
  Returns
  
    - IList<Type>
  IsCandidateForProperty(MethodInfo, Type)
  
  
  
  
  
    protected virtual bool IsCandidateForProperty(MethodInfo method, Type targetClass)
   
  Parameters
  
    - methodMethodInfo
- targetClassType
Returns
  
    - bool
  Read(IEvaluationContext, object, string)
  
  
  
  
  
    public ITypedValue Read(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - ITypedValue
  Write(IEvaluationContext, object, string, object)
  
  
  
  
  
    public void Write(IEvaluationContext context, object target, string name, object newValue)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
- newValueobject