JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode.accessor.reflect
Class ReflectAccessorFactory

java.lang.Object
  extended by org.jboss.reflect.plugins.bytecode.accessor.reflect.ReflectAccessorFactory

public class ReflectAccessorFactory
extends Object

Class to create implementations of the MethodAccessor, ConstructorAccessor and FieldAccessor interfaces.

This implementation simply creates implementations that use reflection

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Constructor Summary
ReflectAccessorFactory()
           
 
Method Summary
static ConstructorAccessor createConstructorAccessor(BytecodeConstructorInfo constructorInfo)
          Creates a new ConstructorAccessor implementation for a given constructor
static FieldAccessor createFieldAccessor(BytecodeFieldInfo fieldInfo)
          Creates a new FieldAccessor implementation for a given field
static MethodAccessor createMethodAccessor(BytecodeMethodInfo methodInfo)
          Creates a new MethodAccessor implementation for a given method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectAccessorFactory

public ReflectAccessorFactory()
Method Detail

createMethodAccessor

public static MethodAccessor createMethodAccessor(BytecodeMethodInfo methodInfo)
Creates a new MethodAccessor implementation for a given method

Parameters:
methodInfo - the method for which we want to create a MethodAccessor implementation
Returns:
the implementing instance
Throws:
RuntimeException - if an error ocurred

createConstructorAccessor

public static ConstructorAccessor createConstructorAccessor(BytecodeConstructorInfo constructorInfo)
Creates a new ConstructorAccessor implementation for a given constructor

Parameters:
constructorInfo - the constructor for which we want to create a ConstructorAccessor implementation
Returns:
the implementing instance
Throws:
RuntimeException - if an error ocurred

createFieldAccessor

public static FieldAccessor createFieldAccessor(BytecodeFieldInfo fieldInfo)
Creates a new FieldAccessor implementation for a given field

Parameters:
fieldInfo - the field for which we want to create a JavassistField implementation
Returns:
the implementing instance
Throws:
RuntimeException - if an error ocurred

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.