JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode.bytes.asm
Class AsmClassBytesFactory

java.lang.Object
  extended by org.jboss.reflect.plugins.bytecode.bytes.asm.AsmClassBytesFactory
All Implemented Interfaces:
ClassBytesFactory

public class AsmClassBytesFactory
extends Object
implements ClassBytesFactory

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Field Summary
static AsmClassBytesFactory INSTANCE
           
 
Method Summary
 ClassBytes loadClassBytes(ClassLoader initiating, String name)
          Tries to load the class bytes
 ClassBytes loadPrimitive(String name)
          If the name resolves to a primitive or a primitive array get the classbytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final AsmClassBytesFactory INSTANCE
Method Detail

loadPrimitive

public ClassBytes loadPrimitive(String name)
Description copied from interface: ClassBytesFactory
If the name resolves to a primitive or a primitive array get the classbytes

Specified by:
loadPrimitive in interface ClassBytesFactory

loadClassBytes

public ClassBytes loadClassBytes(ClassLoader initiating,
                                 String name)
Description copied from interface: ClassBytesFactory
Tries to load the class bytes

Specified by:
loadClassBytes in interface ClassBytesFactory
name - the name of the class. This must be in the format 'package/ClassName'
Returns:
the class bytes, or null if no class could be found

JBoss Reflection 2.2.1.SP1

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